adapter

package
v1.3.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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

func GremlinVertexProcessor[T any](_ context.Context, entry any) (map[string]any, error)

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.

func MongoDB

func MongoDB(store storedb.Provider) *mongo.Database

MongoDB is a helper function to retrieve the store database object from a mongoDB provider.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL