Documentation
¶
Index ¶
- Constants
- func ConstraintName(table string, constraint graph.Constraint) string
- func EdgePartitionTableName(graphID int32) string
- func IndexName(table string, index graph.Index) string
- func NodePartitionTableName(graphID int32) string
- type Graph
- type GraphPartition
- type GraphPartitions
- type IndexChangeSet
Constants ¶
View Source
const ( NodeTable = "node" EdgeTable = "edge" )
Variables ¶
This section is empty.
Functions ¶
func ConstraintName ¶
func ConstraintName(table string, constraint graph.Constraint) string
func EdgePartitionTableName ¶
func NodePartitionTableName ¶
Types ¶
type Graph ¶
type Graph struct {
ID int32
Name string
Partitions GraphPartitions
}
type GraphPartition ¶
type GraphPartition struct {
Name string
Indexes map[string]graph.Index
Constraints map[string]graph.Constraint
}
func NewGraphPartition ¶
func NewGraphPartition(name string) GraphPartition
func NewGraphPartitionFromSchema ¶
func NewGraphPartitionFromSchema(name string, indexes []graph.Index, constraints []graph.Constraint) GraphPartition
type GraphPartitions ¶
type GraphPartitions struct {
Node GraphPartition
Edge GraphPartition
}
type IndexChangeSet ¶
type IndexChangeSet struct {
NodeIndexesToRemove []string
EdgeIndexesToRemove []string
NodeConstraintsToRemove []string
EdgeConstraintsToRemove []string
NodeIndexesToAdd map[string]graph.Index
EdgeIndexesToAdd map[string]graph.Index
NodeConstraintsToAdd map[string]graph.Constraint
EdgeConstraintsToAdd map[string]graph.Constraint
}
func NewIndexChangeSet ¶
func NewIndexChangeSet() IndexChangeSet
Click to show internal directories.
Click to hide internal directories.