Documentation
¶
Overview ¶
Package sqliteindex persists complete code-index generations in relational SQLite tables and FTS5. A Store owns one long-lived database handle.
Index ¶
- Variables
- type Boundary
- type Options
- type Store
- func (s *Store) Checkpoint(ctx context.Context) error
- func (s *Store) Close() error
- func (s *Store) Files(ctx context.Context, rootID groundstrike.RootID) ([]groundstrike.IndexedFile, error)
- func (s *Store) Health(ctx context.Context) error
- func (s *Store) Outline(ctx context.Context, rootID groundstrike.RootID, path string) ([]groundstrike.Symbol, error)
- func (s *Store) RebuildFTS(ctx context.Context) (err error)
- func (s *Store) Reconcile(ctx context.Context, batch groundstrike.Batch) (_ groundstrike.Generation, err error)
- func (s *Store) Search(ctx context.Context, query groundstrike.SearchQuery) ([]groundstrike.SearchHit, error)
- func (s *Store) Status(ctx context.Context, rootID groundstrike.RootID) (groundstrike.Status, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnsafeDatabaseTarget = errors.New("unsafe SQLite database target")
ErrUnsafeDatabaseTarget marks a database path whose existing final component cannot be safely owned by this process.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) Files ¶
func (s *Store) Files(ctx context.Context, rootID groundstrike.RootID) ([]groundstrike.IndexedFile, error)
func (*Store) Outline ¶
func (s *Store) Outline(ctx context.Context, rootID groundstrike.RootID, path string) ([]groundstrike.Symbol, error)
func (*Store) Reconcile ¶
func (s *Store) Reconcile(ctx context.Context, batch groundstrike.Batch) (_ groundstrike.Generation, err error)
func (*Store) Search ¶
func (s *Store) Search(ctx context.Context, query groundstrike.SearchQuery) ([]groundstrike.SearchHit, error)
func (*Store) Status ¶
func (s *Store) Status(ctx context.Context, rootID groundstrike.RootID) (groundstrike.Status, error)
Click to show internal directories.
Click to hide internal directories.