Expand description
What this machine has downloaded from the dictation feed, and which model each role was last set to run.
App-level rather than per-project: dictation is one process-wide engine, so a model is on the machine or it is not.
Re-exportsยง
use redb::ReadableTable;๐use redb::TableDefinition;๐use crate::dictate::DictateRole;๐use crate::install::ActiveChoice;๐use crate::install::InstalledModel;๐use super::Db;๐
Constantsยง
- ACTIVE ๐
- One row per role, keyed by
role_key: the userโs last runtime pick. - INSTALLED ๐
- One row per installed file, keyed by file name.
Functionsยง
- active
- The runtime pick recorded for one role, when there is one.
- clear_
active - Drop one roleโs runtime pick, so the role answers its config key or its compiled pin again.
- installed
- Every installed model, oldest first.
- record_
active - Record the runtime pick for one role, replacing any row for it.
- record_
installed - Record one installed model, replacing any row for the same file.
- remove_
installed - Drop one installed record, by the file it was filed under. A file with no row is not an error: the record the caller wanted gone is already gone.
- role_
key - The storeโs own spelling of a role, stable across releases: the key a pick is filed under.