sqliteindex

package
v0.0.1-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2026 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Overview

Package sqliteindex persists complete code-index generations in relational SQLite tables and FTS5. A Store owns one long-lived database handle.

Index

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 Boundary

type Boundary string
const (
	AfterGenerationCreated    Boundary = "after_generation_created"
	AfterFilesInserted        Boundary = "after_files_inserted"
	AfterChunksInserted       Boundary = "after_chunks_inserted"
	BeforeGenerationActivated Boundary = "before_generation_activated"
)

type Options

type Options struct {
	MaxFiles       int
	MaxBatchBytes  int64
	MaxResults     int
	MaxDBBytes     int64
	RecoverCorrupt bool
	Failpoint      func(Boundary) error
}

type Store

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

func Open

func Open(ctx context.Context, path string, options Options) (*Store, error)

func (*Store) Checkpoint

func (s *Store) Checkpoint(ctx context.Context) error

func (*Store) Close

func (s *Store) Close() error

func (*Store) Files

func (*Store) Health

func (s *Store) Health(ctx context.Context) error

func (*Store) Outline

func (s *Store) Outline(ctx context.Context, rootID groundstrike.RootID, path string) ([]groundstrike.Symbol, error)

func (*Store) RebuildFTS

func (s *Store) RebuildFTS(ctx context.Context) (err error)

func (*Store) Reconcile

func (s *Store) Reconcile(ctx context.Context, batch groundstrike.Batch) (_ groundstrike.Generation, err error)

func (*Store) Search

func (*Store) Status

func (s *Store) Status(ctx context.Context, rootID groundstrike.RootID) (groundstrike.Status, error)

Jump to

Keyboard shortcuts

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