Versions in this module Expand all Collapse all v0 v0.1.1 Sep 6, 2023 Changes in this version + const MaxInt + const MaxUint + const MinInt + const MinUint + func GetReady(db *sql.DB, graphName string) (bool, error) + func IsEntity(v interface{}) bool + type AGErrorListener struct + func NewAGErrorListener() *AGErrorListener + func (el *AGErrorListener) SyntaxError(recognizer antlr.Recognizer, offendingSymbol interface{}, line, column int, ...) + type AGMapper struct + func NewAGMapper(typeMap map[string]reflect.Type) *AGMapper + func (m *AGMapper) PutType(label string, tp reflect.Type) + type AGUnmarshaler struct + func NewAGUnmarshaler() *AGUnmarshaler + type Age struct + func ConnectAge(graphName string, dsn string) (*Age, error) + func NewAge(graphName string, db *sql.DB) *Age + func (a *Age) Begin() (*AgeTx, error) + func (a *Age) Close() error + func (a *Age) DB() *sql.DB + func (age *Age) GetReady() (bool, error) + type AgeError struct + func (e *AgeError) Error() string + type AgeParseError struct + func (e *AgeParseError) Error() string + type AgeTx struct + func (a *AgeTx) ExecCypher(columnCount int, cypher string, args ...interface{}) (*CypherCursor, error) + func (a *AgeTx) ExecCypherMap(columnCount int, cypher string, args ...interface{}) (*CypherMapCursor, error) + func (t *AgeTx) Commit() error + func (t *AgeTx) Rollback() error + 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 ExecCypher(tx *sql.Tx, graphName string, columnCount int, cypher string, ...) (*CypherCursor, error) + func (c *CypherCursor) Close() error + func (c *CypherCursor) GetRow() ([]Entity, error) + func (c *CypherCursor) Next() bool + type CypherMapCursor struct + func ExecCypherMap(tx *sql.Tx, graphName string, columnCount int, cypher string, ...) (*CypherMapCursor, error) + func (c *CypherMapCursor) GetRow() ([]interface{}, error) + func (c *CypherMapCursor) PutType(label string, tp reflect.Type) + 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) Size() int + func (p *MapPath) String() string + type MapperVisitor struct + func (v *MapperVisitor) PutType(label string, tp reflect.Type) + func (v *MapperVisitor) VisitAgeout(ctx *parser.AgeoutContext) interface{} + func (v *MapperVisitor) VisitChildren(node antlr.RuleNode) interface{} + func (v *MapperVisitor) VisitEdge(ctx *parser.EdgeContext) interface{} + func (v *MapperVisitor) VisitPath(ctx *parser.PathContext) interface{} + func (v *MapperVisitor) VisitVertex(ctx *parser.VertexContext) 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 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 + type Vertex struct + func NewVertex(id int64, label string, props map[string]interface{}) *Vertex + func (v *Vertex) GType() GTYPE + func (v *Vertex) String() string