Expand description
Persistence layer for WinBrew.
winbrew-database owns SQLite access, config persistence, journal replay,
and MSI inventory normalization. It stays close to the runtime database
contract so higher layers can use typed helpers instead of direct SQL
plumbing.
The database module keeps its pool registry keyed by resolved paths. That makes the current process-local root model explicit while still keeping the storage boundary centralized for the app and CLI layers.
Re-exportsยง
pub use error::CatalogNotFoundError;pub use error::CatalogSchemaVersionMismatchError;pub use winbrew_core as core;pub use winbrew_models as models;
Modulesยง
- bootstrap ๐
- catalog ๐
- command_
registry ๐ - config ๐
- connection
- error
- installed_
packages ๐ - journal ๐
- migration ๐
- msi_
inventory ๐
Structsยง
- Command
Registry Conflict Error - Committed
Journal Package - Config
- Config
Env - Config
Section - A rendered configuration section with key/value pairs.
- Core
Config - File
Hash - Journal
Reader - Journal
Shim Binding - Lossless command shim binding captured at install time.
- Journal
Writer - Package
NotFound Error - Paths
Config
Enumsยง
- Config
Error - Errors raised while reading, parsing, or validating config values.
- Config
Source - The provenance of a resolved configuration value.
- Config
Validation Error - Errors raised while validating config values.
- Hash
Algo - Journal
Entry - Journal
Read Error - Journal
Replay Error
Constantsยง
- CURRENT_
PATHS ๐
Staticsยง
- CATALOG_
DB_ ๐POOLS - DB_
POOLS ๐
Functionsยง
- apply_
snapshot - commit_
install - commit_
install_ with_ commands - config_
sections - config_
set - config_
unset - delete_
package - find_
command_ owner - find_
command_ owners - find_
packages_ by_ normalized_ path - find_
packages_ by_ normalized_ registry_ key_ path - get_
catalog_ conn - Return a pooled connection to the catalog database.
- get_
catalog_ ๐pool - get_
conn - Return a pooled connection to the primary database.
- get_
effective_ value - get_
installers - Return all catalog installers for a package id.
- get_
package - get_
package_ by_ id - Return a single catalog package by its catalog package id.
- get_
package_ command_ names - get_
pool ๐ - get_
snapshot - init
- Initialize the process-local storage state for the given resolved paths.
- insert_
package - list_
commands_ for_ package - list_
installing_ packages - list_
packages - package_
journal_ key - parse_
command_ names - pool_
for ๐ - replace_
snapshot - replay_
committed_ journal - resolved_
paths ๐ - search
- Search the catalog database for packages matching the query.
- suggest_
key - sync_
package_ commands - update_
installing_ identity - update_
status - update_
status_ and_ engine_ metadata - upsert_
receipt