Versions in this module Expand all Collapse all v1 v1.0.0 May 15, 2024 Changes in this version + const MaxInt + const MaxUint + const MinInt + const MinUint + func IsEntity(v interface{}) bool + func ParseStruct(entity Entity, target interface{}) error + type AGErrorListener struct + func NewAGErrorListener() *AGErrorListener + func (el *AGErrorListener) SyntaxError(recognizer antlr.Recognizer, offendingSymbol interface{}, line, column int, ...) + type AGUnmarshaler struct + func NewAGUnmarshaler() *AGUnmarshaler + func (p *AGUnmarshaler) Unmarshal(text string) (Entity, error) + type AgeError struct + func (e *AgeError) Error() string + type AgeParseError struct + func (e *AgeParseError) Error() string + type Config struct + Db *sql.DB + Dsn string + GraphName string + type Cursor interface + Close func() error + Next func() bool + func NewCypherCursor(columnCount int, rows *sql.Rows) Cursor + func NewCypherMapCursor(columnCount int, rows *sql.Rows) Cursor + type CursorProvider func(columnCount int, rows *sql.Rows) Cursor + type CypherCursor struct + func (c *CypherCursor) Close() error + func (c *CypherCursor) GetRow() ([]Entity, error) + func (c *CypherCursor) Next() bool + type CypherMapCursor struct + func (c *CypherMapCursor) GetRow() ([]interface{}, error) + func (c *CypherMapCursor) PutType(label string, tp reflect.Type) + type Driver interface + Begin func() (Tx, error) + Close func() error + DB func() *sql.DB + Prepare func() (bool, error) + func New(cnf Config) Driver + type Edge struct + func NewEdge(id int64, label string, start int64, end int64, props map[string]interface{}) *Edge + func (e *Edge) EndId() int64 + func (e *Edge) GType() GTYPE + func (e *Edge) StartId() int64 + func (e *Edge) String() string + type Entity interface + GType func() GTYPE + String func() string + type GTYPE uint8 + const G_ARR + const G_BOOL + const G_EDGE + const G_FLOAT + const G_FLOATBIG + const G_INT + const G_INTBIG + const G_MAP + const G_MAP_PATH + const G_NULL + const G_OTHER + const G_PATH + const G_STR + const G_VERTEX + type LabeledEntity struct + func (n *LabeledEntity) Id() int64 + func (n *LabeledEntity) Label() string + func (n *LabeledEntity) Prop(key string) interface{} + func (n *LabeledEntity) Props() map[string]interface{} + type MapPath struct + func NewMapPath(entities []interface{}) *MapPath + func (e *MapPath) GType() GTYPE + func (e *MapPath) Get(index int) interface{} + func (e *MapPath) GetAs(index int, val interface{}) + func (e *MapPath) Size() int + func (p *MapPath) String() string + type Mapper struct + func NewMapper(typeMap map[string]reflect.Type) *Mapper + func (m *Mapper) PutType(label string, val interface{}) + type Path struct + func NewPath(entities []Entity) *Path + func (e *Path) GType() GTYPE + func (e *Path) Get(index int) Entity + func (e *Path) GetAsEdge(index int) *Edge + func (e *Path) GetAsVertex(index int) *Vertex + func (e *Path) Size() int + func (p *Path) String() string + type SimpleEntity struct + func NewSimpleEntity(value interface{}) *SimpleEntity + func (e *SimpleEntity) AsArr() []interface{} + func (e *SimpleEntity) AsBigFloat() *big.Float + func (e *SimpleEntity) AsBigInt() *big.Int + func (e *SimpleEntity) AsBool() bool + func (e *SimpleEntity) AsFloat() float64 + func (e *SimpleEntity) AsInt() int + func (e *SimpleEntity) AsInt64() int64 + func (e *SimpleEntity) AsMap() map[string]interface{} + func (e *SimpleEntity) AsStr() string + func (e *SimpleEntity) GType() GTYPE + func (e *SimpleEntity) IsNull() bool + func (e *SimpleEntity) String() string + func (e *SimpleEntity) Value() interface{} + type Tx interface + Commit func() error + Exec func(columnCount int, cypher string, args ...interface{}) (*CypherCursor, error) + ExecMap func(columnCount int, cypher string, args ...interface{}) (*CypherMapCursor, error) + Rollback func() error + type UnmarshalVisitor struct + func (v *UnmarshalVisitor) Visit(tree antlr.ParseTree) interface{} + func (v *UnmarshalVisitor) VisitAgeout(ctx *parser.AgeoutContext) interface{} + func (v *UnmarshalVisitor) VisitArr(ctx *parser.ArrContext) interface{} + func (v *UnmarshalVisitor) VisitChildren(node antlr.RuleNode) interface{} + func (v *UnmarshalVisitor) VisitEdge(ctx *parser.EdgeContext) interface{} + func (v *UnmarshalVisitor) VisitErrorNode(node antlr.ErrorNode) interface{} + func (v *UnmarshalVisitor) VisitPair(ctx *parser.PairContext) interface{} + func (v *UnmarshalVisitor) VisitPath(ctx *parser.PathContext) interface{} + func (v *UnmarshalVisitor) VisitProperties(ctx *parser.PropertiesContext) interface{} + func (v *UnmarshalVisitor) VisitTerminal(node antlr.TerminalNode) interface{} + func (v *UnmarshalVisitor) VisitValue(ctx *parser.ValueContext) interface{} + func (v *UnmarshalVisitor) VisitVertex(ctx *parser.VertexContext) interface{} + type Unmarshaller interface + Unmarshal func(text string) (Entity, error) + type Vertex struct + func NewVertex(id int64, label string, props map[string]interface{}) *Vertex + func (v *Vertex) GType() GTYPE + func (v *Vertex) String() string + type Visitor struct + func (v *Visitor) PutType(label string, tp reflect.Type) + func (v *Visitor) VisitAgeout(ctx *parser.AgeoutContext) interface{} + func (v *Visitor) VisitChildren(node antlr.RuleNode) interface{} + func (v *Visitor) VisitEdge(ctx *parser.EdgeContext) interface{} + func (v *Visitor) VisitPath(ctx *parser.PathContext) interface{} + func (v *Visitor) VisitVertex(ctx *parser.VertexContext) interface{}