Skip to main content

Module db

Module db 

Source

Structs§

AlbumRecency
The latest effective capture (Unix seconds) of each album’s visible, untrashed assets, keyed by the album id as the index stores it. An album absent from the map has no such asset.
AlbumRow
A user-defined album. Membership is tracked via assets.album_id (one album per asset, per the filesystem design doc).
Applied
One applied step, as reported by migrate.
AssetRow
AssetStackRow
AssetTagRow
CachedRepresentationRow
One cached, reclaimable representation of an asset. The eviction sweep ranks these by last_accessed_at (LRU) with tier as the tiebreaker; pinned and is_owned_original rows are exempt. path is the on-disk cache file the sweep deletes.
DatabaseDriver
EmbeddingInsert
A provenanced embedding to insert into the index: the subject asset, the producing model (task, model_id, model_version), the platform partition discriminator, and the vector.
EmbeddingRecord
A stored embedding’s provenance (from the companion table; the vector itself stays in vec0).
KnnHit
A single nearest-neighbour hit.
MigrationOutcome
What migrate did. Recorded so the CLI, the FFI host, and a support bundle can all say exactly what ran against a user’s library.
StackMemberRow
VectorTableSpec
The shape of one task’s vec0 partition table: which task it serves, and the (dim, metric) its vectors are sized and ranked by.

Enums§

MigrationError
Why a catalog could not be brought to SCHEMA_VERSION.
VectorIndexError
Failures from the vector index.

Traits§

EmbeddingProvenance
The embedding-provenance gate the vector index calls before it stores or ranks anything — the seam through which the model inventory reaches the index without the index depending on ml.
VectorIndex
The store port the ML layer writes embeddings into and ranks them from.

Functions§

album_creation_secs
An album’s creation time (Unix seconds), read from its UUIDv7 id; None for an id that carries none (a derived or non-v7 id, or one that is not a UUID).