pub async fn declared_dimension(
conn: &Connection,
model: &ModelName,
) -> Result<usize>Expand description
The dimension a registered model’s table declares, read from the schema.
The crate keeps no registry of its own. F32_BLOB(768) in the column type
is the declaration, PRAGMA table_info reports it verbatim, and reading it
back means the Rust-side dimension check and the storage-layer one cannot
disagree — there is only one number. Keeping a HashMap<model, dim> beside
the database would be the same mistake D-035 fixed in archive(): a second
hand-maintained description of a set the schema already defines.