sqlite

package
v0.0.0-...-0f11aa8 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Store)

func WithMeter

func WithMeter(meter metric.Meter) Option

func WithTracer

func WithTracer(tracer trace.Tracer) Option

type Store

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

func NewStore

func NewStore(dbPath string, opts ...Option) (*Store, error)

func (*Store) Close

func (s *Store) Close() error

func (*Store) DeleteByEntityAttribute

func (s *Store) DeleteByEntityAttribute(ctx context.Context, entity, attr string) error

func (*Store) DeleteFact

func (s *Store) DeleteFact(ctx context.Context, id string) error

func (*Store) DeleteRelationship

func (s *Store) DeleteRelationship(ctx context.Context, id string) error

func (*Store) ReadFact

func (s *Store) ReadFact(ctx context.Context, id string) (semantic.Fact, error)

func (*Store) ReadRelationships

func (s *Store) ReadRelationships(ctx context.Context, subject string) ([]semantic.Relationship, error)

func (*Store) ReadStatement

func (s *Store) ReadStatement(ctx context.Context, id string) (semantic.StatementFact, error)

func (*Store) ReadTriple

func (s *Store) ReadTriple(ctx context.Context, id string) (semantic.TripleFact, error)

func (*Store) Search

func (s *Store) Search(ctx context.Context, query semantic.SearchQuery) ([]semantic.Fact, error)

func (*Store) TraverseGraph

func (s *Store) TraverseGraph(ctx context.Context, query semantic.GraphQuery) (semantic.GraphResult, error)

func (*Store) WriteRelationship

func (s *Store) WriteRelationship(ctx context.Context, rel semantic.Relationship) error

func (*Store) WriteStatement

func (s *Store) WriteStatement(ctx context.Context, fact semantic.StatementFact) error

func (*Store) WriteStatements

func (s *Store) WriteStatements(ctx context.Context, facts []semantic.StatementFact) error

func (*Store) WriteTriple

func (s *Store) WriteTriple(ctx context.Context, fact semantic.TripleFact) error

func (*Store) WriteTriples

func (s *Store) WriteTriples(ctx context.Context, facts []semantic.TripleFact) error

Jump to

Keyboard shortcuts

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