Documentation
¶
Index ¶
- type Store
- func (s *Store) AcquireLocks(ctx context.Context, intentID string, lockKeys []string, ttl time.Duration) ([]core.LockRecord, error)
- func (s *Store) AllEdges(ctx context.Context) ([]core.Edge, error)
- func (s *Store) AllSymbols(ctx context.Context) ([]core.SymbolRecord, error)
- func (s *Store) Close() error
- func (s *Store) DeleteFilesNotIn(ctx context.Context, current map[string]bool) (int, error)
- func (s *Store) FileBlobSHA(ctx context.Context, filePath string) (string, bool, error)
- func (s *Store) FilesNotIn(ctx context.Context, current map[string]bool) ([]string, error)
- func (s *Store) Migrate(ctx context.Context) error
- func (s *Store) ReleaseLocks(ctx context.Context, intentID string) (int64, error)
- func (s *Store) ReplaceEdges(ctx context.Context, edges []core.Edge) error
- func (s *Store) Status(ctx context.Context) (core.Status, error)
- func (s *Store) UpsertFile(ctx context.Context, filePath, blobSHA, language string, ...) error
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 (*Store) AcquireLocks ¶
func (*Store) AllSymbols ¶
func (*Store) DeleteFilesNotIn ¶
func (*Store) FileBlobSHA ¶
func (*Store) FilesNotIn ¶ added in v0.6.2
FilesNotIn returns the indexed file paths absent from current — the files a delete pass would prune — without deleting anything.
func (*Store) ReleaseLocks ¶
func (*Store) ReplaceEdges ¶
ReplaceEdges makes the edges table equal to the given set. It diffs against what is stored and writes only the difference: a one-file change on a million-edge repo touches hundreds of rows, and the previous delete-everything-reinsert paid the full million-row write every index (21s on a 19k-file monorepo). Inserts are batched multi-row.
func (*Store) UpsertFile ¶
Click to show internal directories.
Click to hide internal directories.