Skip to main content

Crate microsandbox_db

Crate microsandbox_db 

Source
Expand description

Shared database entity definitions and connection helpers for the microsandbox project.

Used by both microsandbox (host CLI) and microsandbox-runtime (in-VM supervisor). They share the same SQLite file, so the connection builder lives here to keep PRAGMAs in one place.

Re-exports§

pub use connection::DbReadConnection;
pub use connection::DbWriteConnection;

Modules§

connection
Typed wrappers around sea_orm::DatabaseConnection.
entity
SeaORM entity definitions for all microsandbox database tables.
pool
Canonical SQLite connection builder shared by every microsandbox process.
retry
SQLite-specific error classification and retry loop used by write paths.