package
0.0.85
Repository: https://github.com/clems4ever/go-graphkb.git
Documentation: pkg.go.dev

# Functions

CrossProductExpressions computes the cross product of 2 sets of expressions.
No description provided by the author
No description provided by the author
NewAsset create a new asset from type and key.
NewExpressionBuilder create a new instance of expression builder.
NewExpressionParser create a new instance of expression parser.
NewGraph create a graph.
NewGraphBinder create an instance of graph binder.
NewGraphDecoder create an instance of a graph encoder.
NewGraphEncoder create an instance of a graph encoder.
NewGraphUpdater create a new instance of graph updater.
NewGraphUpdatesQueue create a new instance of updates queue.
NewPatternParser create an instance of pattern parser.
No description provided by the author
NewQuerier create an instance of a querier.
NewQueryGraph create an instance of a query graph.
NewQueryLimitVisitor create an instance of query limit visitor.
NewQuerySkipVisitor create an instance of the skip visitor.
NewQueryWhereVisitor create an instance of query where visitor.
NewSQLQueryTranslator create an instance of SQL query translator.
UnwindOrExpressions in order to transform query with or relations into a union query which is more performant, an AndOrExpression is transformed into a list of AndExpressions.

# Constants

Both there is a relation in both directions.
EdgeExprType edge expression type.
Either there is a relation but we don't know in which direction.
No description provided by the author
No description provided by the author
No description provided by the author
Left relation.
MatchContext the node or relation is coming from a MATCH clause.
NodeExprType node expression type.
NodeType variable of type node.
PropertyExprType property expression type.
PropertyType variable of type property (neither a node or a relation).
RelationType variable of type relation.
Right relation.
WhereContext the node or relation is coming from a WHERE clause.

# Variables

MatchScope default match scope.

# Structs

AndOrExpression represent a AND or OR expression.
AssetKey represent the key of the asset.
AssetWithID represent an asset with an ID from the database.
ExpressionBuilder build a SQL part based on a Cypher expression.
ExpressionParser is a parser of expression.
ExpressionVisitorBase expression visitor base interface.
No description provided by the author
Graph represent a Graph.
GraphBinder represent a graph builder which bind assets and relations to graph schema provided by the source.
GraphDecoder represent a graph decoder.
GraphEncoder represent a graph encoder.
GraphJSON is the json representation of a graph.
GraphQueryResult represent a result from the database with the projection model.
GraphUpdater represents the updater of graph.
GraphUpdatesQueue represent a graph updates queue with.
PatternParser is a parser of patterns.
ProcessedRelationTuple tuple for existing relationships.
Projection represent the type and alias of one item in the RETURN statement (called a projection).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
QueryGraph the representation of a query graph.
QueryLimitVisitor a visitor for the limit clause.
QueryNode represent a node and its constraints.
QueryRelation represent a relation and its constraints.
QuerySkipVisitor a visitor for the skip clause.
QueryWhereVisitor a visitor for the where clauses.
RelationKey a relation key of the KB.
RelationWithID represent a relation with an ID from the database.
Scope represent the context of the pattern and the ID.
SourceSubGraphUpdates represents the updates to perform on a source subgraph.
SQLExpressionVisitor visitor used to build the SQL part from the Cypher expression.
SQLFrom represent a from item with an optional alias name.
No description provided by the author
SQLInnerStructure represent a SQL inner structure with an optional alias name.
No description provided by the author
SQLProjection represent a projection item with an optional alias name.
SQLQueryTranslator represent an SQL translator object converting cypher queries into SQL.
SQLStructure represent a SQL structure for building the query string.
SQLTranslation the resulting object of the translation.
No description provided by the author
TypeAndIndex type and index of a variable from the cypher query.

# Interfaces

Cursor is a cursor over the results.
ExpressionVisitor a visitor of expression.
GraphDB an interface to a graph DB such as Arango or neo4j.

# Type aliases

Asset represent the asset with details.
ExpressionType expression type.
No description provided by the author
PatternContext the context of the pattern pushed.
Relation represent the relation with details.
RelationDirection the direction of a relation.
VariableType represent the type of a variable in the cypher query.