Versions in this module Expand all Collapse all v0 v0.2.1 Aug 30, 2026 v0.2.0 Aug 29, 2026 Changes in this version + const DefaultEmbeddingDim + type PgxDB interface + Exec func(ctx context.Context, sql string, args ...any) (pgconn.CommandTag, error) + Query func(ctx context.Context, sql string, args ...any) (pgx.Rows, error) + QueryRow func(ctx context.Context, sql string, args ...any) pgx.Row + type Store struct + EmbeddingDim int + func New(db PgxDB) (*Store, error) + func (s *Store) Get(ctx context.Context, scope brain.Scope, id uuid.UUID) (brain.Object, error) + func (s *Store) GetByProperty(ctx context.Context, scope brain.Scope, key, value string) (brain.Object, error) + func (s *Store) GetKind(ctx context.Context, kind string) (brain.ObjectKind, error) + func (s *Store) GetMany(ctx context.Context, scope brain.Scope, ids []uuid.UUID) ([]brain.Object, error) + func (s *Store) KindsWithObjects(ctx context.Context, scope brain.Scope) ([]string, error) + func (s *Store) ListByKind(ctx context.Context, scope brain.Scope, kind string, limit int) ([]brain.Object, error) + func (s *Store) ListChildren(ctx context.Context, scope brain.Scope, parentID uuid.UUID) ([]brain.Object, error) + func (s *Store) ListKinds(ctx context.Context) ([]brain.ObjectKind, error) + func (s *Store) Put(ctx context.Context, obj brain.Object) error + func (s *Store) PutKind(ctx context.Context, k brain.ObjectKind) error + func (s *Store) SearchLexical(ctx context.Context, scope brain.Scope, query string, filters brain.Filter, ...) ([]brain.ScoredID, error) + func (s *Store) SearchTrigram(ctx context.Context, scope brain.Scope, query string, filters brain.Filter, ...) ([]brain.ScoredID, error) + func (s *Store) SearchVector(ctx context.Context, scope brain.Scope, embedding []float32, ...) ([]brain.ScoredID, error) + func (s *Store) Setup(ctx context.Context, kinds ...brain.KindSpec) error + func (s *Store) SoftDelete(ctx context.Context, scope brain.Scope, id uuid.UUID) error