Documentation ¶
Index ¶
- func DefaultEdgeTraversal() types.EdgeTraversal
- func GremlinEdgeProcessor(ctx context.Context, oic *converter.ObjectIDConverter, label string, ...) (map[any]any, error)
- func GremlinVertexProcessor[T any](_ context.Context, entry any) (map[string]any, error)
- func MongoCursorHandler[T any](ctx context.Context, cur *mongo.Cursor, callback types.ProcessEntryCallback, ...) error
- func MongoDB(ctx context.Context, store storedb.Provider) *mongo.Database
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultEdgeTraversal ¶
func DefaultEdgeTraversal() types.EdgeTraversal
DefaultEdgeTraversal returns the traversal to insert a set of edges from a map using the MergeE API.
func GremlinEdgeProcessor ¶
func GremlinEdgeProcessor(ctx context.Context, oic *converter.ObjectIDConverter, label string, out primitive.ObjectID, in primitive.ObjectID) (map[any]any, error)
GremlinEdgeProcessor transforms the inputs into a map suitable for bulk edge insert using the MergeE API.
func GremlinVertexProcessor ¶
GremlinVertexProcessor transform a graph model object to a map suitable for consumption by a gremllin traversal.
func MongoCursorHandler ¶
func MongoCursorHandler[T any](ctx context.Context, cur *mongo.Cursor, callback types.ProcessEntryCallback, complete types.CompleteQueryCallback) error
MongoCursorHandler is the default stream implementation to handle the query results from a mongoDB store provider.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.