sqlite

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

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
}

func Open

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

func (*Store) ApplyResolution

func (s *Store) ApplyResolution(ctx context.Context, anchorID string, binding domain.Binding, status domain.AnchorStatus, reason string, confidence float64) (domain.Anchor, error)

func (*Store) Close

func (s *Store) Close() error

func (*Store) CreateAnchor

func (s *Store) CreateAnchor(ctx context.Context, anchor domain.Anchor) (domain.Anchor, error)

func (*Store) CreateComment

func (s *Store) CreateComment(ctx context.Context, comment domain.Comment) (domain.Comment, error)

func (*Store) CreateRepo

func (s *Store) CreateRepo(ctx context.Context, repo domain.Repo) (domain.Repo, error)

func (*Store) DeleteRepo

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

func (*Store) GetAnchor

func (s *Store) GetAnchor(ctx context.Context, id string) (domain.Anchor, error)

func (*Store) GetRepo

func (s *Store) GetRepo(ctx context.Context, id string) (domain.Repo, error)

func (*Store) ListAnchorEvents

func (s *Store) ListAnchorEvents(ctx context.Context, anchorID string) ([]domain.AnchorEvent, error)

func (*Store) ListAnchors

func (s *Store) ListAnchors(ctx context.Context, filter domain.AnchorFilter) ([]domain.Anchor, error)

func (*Store) ListComments

func (s *Store) ListComments(ctx context.Context, anchorID string) ([]domain.Comment, error)

func (*Store) ListRepos

func (s *Store) ListRepos(ctx context.Context) ([]domain.Repo, error)

func (*Store) ReplaceBinding

func (s *Store) ReplaceBinding(ctx context.Context, anchorID string, binding domain.Binding, reason string, confidence float64) (domain.Anchor, error)

func (*Store) Search

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

func (*Store) UpdateAnchor

func (s *Store) UpdateAnchor(ctx context.Context, anchor domain.Anchor, reason string) (domain.Anchor, error)

func (*Store) UpdateRepo

func (s *Store) UpdateRepo(ctx context.Context, repo domain.Repo) (domain.Repo, error)

Jump to

Keyboard shortcuts

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