Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Column ¶
type Column struct {
// Spanner column name.
Name string
// The spanner table this column belongs to.
Table Table
}
Column represents a column in schema mapping.
type Entity ¶
type Entity struct {
// Entity ID like "E1", "E2"
ID string
// The spanner table this entity belongs to.
Table Table
}
Entity represents node entity referenced in schema mapping.
type Mapping ¶
type Mapping struct {
// Predicate could be a string value or an Entity.
Pred interface{}
// Subject is a table entity.
Sub Entity
// Object indicates the column of the entity.
Obj interface{}
}
Mapping represents a schema mapping statement.
func NewMapping ¶
NewMapping creates a new Mapping instance.
type Node ¶
type Node struct {
// Alias of a node in datalog query, should start with "?".
Alias string
}
Node represents a reference of a graph node in datalog query.
type OutArcInfo ¶
OutArcInfo is used for out arcs pred column.
type Query ¶
type Query struct {
// Query predicate is a string of schema.
Pred string
// Query subject is a node.
Sub Node
// Query object is a node or string.
Obj interface{}
}
Query represents a datalog query statement.
type QueryOptions ¶
QueryOptions contains options for query.
Click to show internal directories.
Click to hide internal directories.