Documentation
¶
Index ¶
- type ApplyJournalRecord
- type ChangeRecord
- type ChunkRow
- type ConflictRecord
- type DB
- func (d *DB) BackfillVectorIndex(ctx context.Context) (int, error)
- func (d *DB) ChunksNeedingEmbeddings(ctx context.Context, vaultID int64, model string, limit int) ([]ChunkRow, error)
- func (d *DB) Close() error
- func (d *DB) CompleteApplyJournal(ctx context.Context, id int64, status string, errorText string) error
- func (d *DB) GetProposal(ctx context.Context, id int64) (ProposalRecord, error)
- func (d *DB) IndexScan(ctx context.Context, vaultID int64, result vault.ScanResult, ...) (ScanStats, error)
- func (d *DB) ListApplyJournal(ctx context.Context, proposalID int64) ([]ApplyJournalRecord, error)
- func (d *DB) ListChanges(ctx context.Context, proposalID int64) ([]ChangeRecord, error)
- func (d *DB) ListChunks(ctx context.Context, vaultID int64) ([]ChunkRow, error)
- func (d *DB) ListEmbeddings(ctx context.Context, vaultID int64, model string) ([]ChunkRow, [][]float64, error)
- func (d *DB) ListNotes(ctx context.Context, vaultID int64) ([]NoteRow, error)
- func (d *DB) ListProposals(ctx context.Context, vaultID int64, status string, all bool) ([]ProposalRecord, error)
- func (d *DB) Migrate(ctx context.Context) error
- func (d *DB) NoteByPath(ctx context.Context, vaultID int64, path string) (NoteRow, error)
- func (d *DB) SaveApplyJournal(ctx context.Context, c ChangeRecord, plannedJSON string) (int64, error)
- func (d *DB) SaveChange(ctx context.Context, c ChangeRecord) (int64, error)
- func (d *DB) SaveConflict(ctx context.Context, c ConflictRecord) (int64, error)
- func (d *DB) SaveProposal(ctx context.Context, vaultID int64, ...) (int64, error)
- func (d *DB) SearchChunks(ctx context.Context, vaultID int64, query string, limit int) ([]ChunkRow, error)
- func (d *DB) SearchVecChunks(ctx context.Context, vaultID int64, model string, queryJSON string, limit int) ([]VectorSearchRow, error)
- func (d *DB) Status(ctx context.Context, vaultPath string) (Status, error)
- func (d *DB) StoreEmbedding(ctx context.Context, chunk ChunkRow, model string, vector []float64) error
- func (d *DB) Tx(ctx context.Context, fn func(*sql.Tx) error) error
- func (d *DB) UpdateProposalStatus(ctx context.Context, id int64, status string) error
- func (d *DB) UpsertVault(ctx context.Context, name, path string, cliEnabled, uriEnabled bool) (int64, error)
- func (d *DB) VaultID(ctx context.Context, vaultPath string) (int64, error)
- type NoteRow
- type ProposalRecord
- type ScanStats
- type Status
- type VectorSearchRow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplyJournalRecord ¶
type ChangeRecord ¶
type ConflictRecord ¶
type DB ¶
type DB struct {
SQL *sql.DB
Path string
VectorAvailable bool
// contains filtered or unexported fields
}
func (*DB) ChunksNeedingEmbeddings ¶
func (*DB) CompleteApplyJournal ¶
func (*DB) GetProposal ¶
func (*DB) ListApplyJournal ¶
func (*DB) ListChanges ¶
func (*DB) ListChunks ¶
func (*DB) ListEmbeddings ¶
func (*DB) ListProposals ¶
func (*DB) NoteByPath ¶
func (*DB) SaveApplyJournal ¶
func (*DB) SaveChange ¶
func (*DB) SaveConflict ¶
func (*DB) SaveProposal ¶
func (*DB) SearchChunks ¶
func (*DB) SearchVecChunks ¶
func (*DB) StoreEmbedding ¶
func (*DB) UpdateProposalStatus ¶
func (*DB) UpsertVault ¶
type ProposalRecord ¶
type Status ¶
type Status struct {
VaultID int64 `json:"vault_id"`
VaultName string `json:"vault_name"`
VaultPath string `json:"vault_path"`
Notes int `json:"notes"`
LastScan string `json:"last_scan"`
DatabasePath string `json:"database_path"`
VectorAvailable bool `json:"vector_available"`
EmbeddingsStored int `json:"embeddings_stored"`
VectorIndexed int `json:"vector_indexed"`
PendingProposals int `json:"pending_proposals"`
AppliedProposals int `json:"applied_proposals"`
}
type VectorSearchRow ¶
Click to show internal directories.
Click to hide internal directories.