package
1.4.0
Repository: https://github.com/krotik/eliasdb.git
Documentation: pkg.go.dev

# Packages

Package data contains classes and functions to handle graph data.
Package graphstorage contains classes which model storage objects for graph data.
Package util contains utility classes for the graph storage.

# Functions

ExportPartition dumps the contents of a partition to an io.Writer in JSON format: { nodes : [ { <attr> : <value> }, ..
ImportPartition imports the JSON contents of an io.Reader into a given partition.
IsFullSpec is a function to determine if a given spec is a fully specified spec (i.e.
NewConcurrentGraphTrans creates a new thread-safe graph transaction.
NewGraphManager returns a new GraphManager instance.
NewGraphTrans creates a new graph transaction.
NewRollingTrans wraps an existing transaction into a rolling transaction.
SortDump sorts a string result which was produced by ExportPartition.

# Constants

EventEdgeCreated is thrown when an edge was created.
EventEdgeDelete is thrown before an edge is deleted.
EventEdgeDeleted is thrown when an edge was deleted.
EventEdgeStore is thrown before an edge is stored (always overwriting existing values).
EventEdgeUpdated is thrown when an edge was updated.
EventNodeCreated is thrown when a node was created.
EventNodeDelete is thrown before a node is deleted.
EventNodeDeleted is thrown when a node was deleted.
EventNodeStore is thrown before a node is stored (always overwriting existing values).
EventNodeUpdate is thrown before a node is updated.
EventNodeUpdated is thrown when a node was updated.
MainDBEdgeAttrs is the MainDB entry key for a list of edge attributes */.
MainDBEdgeCount is the MainDB entry key for an edge count */.
MainDBEdgeKinds is the MainDB entry key for edge kind information */.
MainDBEntryPrefix is the prefix for entries stored in the main database */.
MainDBNodeAttrs is the MainDB entry key for a list of node attributes */.
MainDBNodeCount is the MainDB entry key for a node count */.
MainDBNodeEdges is the MainDB entry key for a list of node relationships */.
MainDBNodeKinds is the MainDB entry key for node kind information */.
MainDBParts is the MainDB entry key for partition information */.
MainDBVersion is the MainDB entry key for version information */.
PrefixNSAttr is the prefix for storing the value of a node attribute */.
PrefixNSAttrs is the prefix for storing attributes of a node */.
PrefixNSEdge is the prefix for storing a link from a node (and a spec) to an edge */.
PrefixNSSpecs is the prefix for storing specs of edges related to a node */.
RootIDNodeHTree is the root ID for the HTree holding primary information */.
RootIDNodeHTreeSecond is the root ID for the HTree holding secondary information */.
StorageSuffixEdges is the suffix for an edge storage */.
StorageSuffixEdgesIndex is the suffix for an edge index */.
StorageSuffixNodes is the suffix for a node storage */.
StorageSuffixNodesIndex is the suffix for a node index */.
VERSION of the GraphManager */.

# Variables

ErrEventHandled is a special error which an event handler can return to notify the GraphManager that no further action is necessary.

# Structs

Manager data structure */.
NodeKeyIterator can be used to iterate node keys of a certain node kind.
SystemRuleDeleteNodeEdges is a system rule to delete all edges when a node is deleted.
SystemRuleUpdateNodeStats is a system rule to update info entries such as known node or edge kinds in the MainDB.

# Interfaces

IndexQuery models the interface to the full text search index.
Rule models a graph rule.
Trans is a transaction object which should be used to group node and edge operations.