File: TYPES.md

package info (click to toggle)
postgresql-16-age 1.6.0~rc0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 14,016 kB
  • sloc: ansic: 33,556; sql: 13,270; python: 2,530; yacc: 2,518; java: 1,418; lex: 1,325; perl: 294; sh: 286; makefile: 123; javascript: 24
file content (16 lines) | stat: -rw-r--r-- 983 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Apache AGE - Go driver Type mapping

* For more information about Apache AGE result types : https://age.apache.org/docs/Apache_AGE_Guide.pdf

| Type | AGE Result | Go Type |
|------|------------|---------|
|Vertex|::vertex    |Vertex<br> vertex.Id() int64<br>  vertex.Label() string<br>vertex.Prop(string) interface{} |
|Edge  |::edge      |Edge<br>edge.Id() int64<br>edge.Label() string<br>edge.StartId() int64<br>edge.EndId() int64<br>edge.Prop(string) interface{}          |
|Path  |::path      |Path<br>path.Size() int // quantity of vertices and edges in this path<br>path.Get(index int) Entity // *Vertex or *Edge<br>path.GetAsVertex(index int) *Vertex<br>path.GetAsEdge(index int) *Edge          |
|Integer |int       |int64    |
|Float |float<br>NaN, -Infinity, Infinity |float64 <br>math.Nan(), math.Inf(-1),math.Inf(1)   |
|Numeric |::numeric |*big.Int<br>*big.Float |
|String|string       |string     |
|Boolean|bool       |bool     |
|Null|empty result |nil         |