Documentation
¶
Index ¶
- func FormatNodeUpsert(graphTarget model.Graph, identityProperties []string) string
- func FormatRelationshipPartitionUpsert(graphTarget model.Graph, identityProperties []string) string
- type Future
- type NodeUpdate
- type NodeUpdateBatch
- type Query
- func (s Query) AssertGraph(schema graph.Graph, definition model.Graph) (model.Graph, error)
- func (s Query) CreateGraph(schema graph.Graph) (model.Graph, error)
- func (s Query) CreatePartitionTable(name, parent string, graphID int32) (model.GraphPartition, error)
- func (s Query) CreatePropertyConstraint(indexName, tableName, fieldName string, indexType graph.IndexType) error
- func (s Query) CreatePropertyIndex(indexName, tableName, fieldName string, indexType graph.IndexType) error
- func (s Query) CreateSchema() error
- func (s Query) DropConstraint(constraintName string) error
- func (s Query) DropIndex(indexName string) error
- func (s Query) DropSchema() error
- func (s Query) InsertOrGetKind(kind graph.Kind) (int16, error)
- func (s Query) SelectGraphByName(name string) (model.Graph, error)
- func (s Query) SelectGraphs() (map[string]model.Graph, error)
- func (s Query) SelectKindID(kind graph.Kind) (int16, error)
- func (s Query) SelectKinds() (map[graph.Kind]int16, error)
- func (s Query) SelectTableIndexDefinitions(tableName string) ([]string, error)
- type RelationshipUpdate
- type RelationshipUpdateBatch
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatNodeUpsert ¶
Types ¶
type NodeUpdateBatch ¶
type NodeUpdateBatch struct {
IdentityProperties []string
Updates map[string]*NodeUpdate
}
NodeUpdateBatch
TODO: See note below
Some assumptions were made here regarding identity kind matching since this data model does not directly require the kind of a node to enforce a constraint
func NewNodeUpdateBatch ¶
func NewNodeUpdateBatch() *NodeUpdateBatch
func ValidateNodeUpdateByBatch ¶
func ValidateNodeUpdateByBatch(updates []graph.NodeUpdate) (*NodeUpdateBatch, error)
func (*NodeUpdateBatch) Add ¶
func (s *NodeUpdateBatch) Add(update graph.NodeUpdate) (*Future[graph.ID], error)
type Query ¶
type Query struct {
// contains filtered or unexported fields
}
func On ¶
func On(tx graph.Transaction) Query
func (Query) AssertGraph ¶
func (Query) CreatePartitionTable ¶
func (Query) CreatePropertyConstraint ¶
func (Query) CreatePropertyIndex ¶
func (Query) CreateSchema ¶
func (Query) DropConstraint ¶
func (Query) DropSchema ¶
type RelationshipUpdate ¶
type RelationshipUpdateBatch ¶
type RelationshipUpdateBatch struct {
NodeUpdates *NodeUpdateBatch
IdentityProperties []string
Updates map[string]*RelationshipUpdate
}
func NewRelationshipUpdateBatch ¶
func NewRelationshipUpdateBatch() *RelationshipUpdateBatch
func ValidateRelationshipUpdateByBatch ¶
func ValidateRelationshipUpdateByBatch(updates []graph.RelationshipUpdate) (*RelationshipUpdateBatch, error)
func (*RelationshipUpdateBatch) Add ¶
func (s *RelationshipUpdateBatch) Add(update graph.RelationshipUpdate) error
Click to show internal directories.
Click to hide internal directories.