sqlite

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package sqlite provides the embedded SQLite reference implementation of memgraph.Store.

Default driver: modernc.org/sqlite (pure Go, cgo-free) to preserve single-binary cross-compilation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

Store is the SQLite-backed memgraph.Store implementation.

func Open

func Open(path string) (*Store, error)

Open opens (or creates) the SQLite database at path and applies the schema.

func (*Store) Close

func (s *Store) Close() error

func (*Store) CreateGraph

func (s *Store) CreateGraph(ctx context.Context, in memgraph.GraphInput) (memgraph.Graph, error)

func (*Store) DeleteEdge

func (s *Store) DeleteEdge(ctx context.Context, id memgraph.EdgeID) error

func (*Store) DescribeSchema added in v0.3.0

func (s *Store) DescribeSchema(ctx context.Context, graphID memgraph.GraphID) (memgraph.SchemaDescription, error)

func (*Store) GetGraph

func (s *Store) GetGraph(ctx context.Context, id memgraph.GraphID) (memgraph.Graph, error)

func (*Store) GetNodeByID

func (s *Store) GetNodeByID(ctx context.Context, id memgraph.NodeID) (memgraph.Node, error)

func (*Store) GetNodeByLineage

func (s *Store) GetNodeByLineage(ctx context.Context, id memgraph.LineageID, opts memgraph.ReadOpts) (memgraph.Node, error)

func (*Store) History

func (s *Store) History(ctx context.Context, id memgraph.LineageID) ([]memgraph.Node, error)

func (*Store) Incoming

func (s *Store) Incoming(ctx context.Context, to memgraph.LineageID, opts memgraph.TraverseOpts) ([]memgraph.Edge, error)

func (*Store) ListGraphs

func (s *Store) ListGraphs(ctx context.Context) ([]memgraph.Graph, error)

func (*Store) ListNodes

func (s *Store) ListNodes(ctx context.Context, graphID memgraph.GraphID, f memgraph.NodeFilter) ([]memgraph.Node, error)

func (*Store) ListTags added in v0.3.0

func (s *Store) ListTags(ctx context.Context, graphID memgraph.GraphID, prefix string, limit int) ([]memgraph.TagFreq, error)

func (*Store) Outgoing

func (s *Store) Outgoing(ctx context.Context, from memgraph.LineageID, opts memgraph.TraverseOpts) ([]memgraph.Edge, error)

func (*Store) PutEdge

func (s *Store) PutEdge(ctx context.Context, in memgraph.EdgeInput) (memgraph.Edge, error)

func (*Store) PutNode

func (s *Store) PutNode(ctx context.Context, in memgraph.NodeInput) (memgraph.Node, error)

func (*Store) Search

func (s *Store) Search(ctx context.Context, graphID memgraph.GraphID, q memgraph.SearchQuery) ([]memgraph.SearchHit, error)

func (*Store) Subscribe

func (s *Store) Subscribe(h memgraph.WriteHandler) (memgraph.Unsubscribe, error)

func (*Store) SymlinkManifest

func (s *Store) SymlinkManifest(ctx context.Context, graphID memgraph.GraphID) (memgraph.SymlinkManifest, error)

func (*Store) Traverse

func (*Store) UpdateGraphConfig

func (s *Store) UpdateGraphConfig(ctx context.Context, id memgraph.GraphID, patch memgraph.GraphConfigPatch) (memgraph.Graph, error)

Jump to

Keyboard shortcuts

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