Skip to main content

init

Function init 

Source
pub async fn init(db_path: &Path) -> Result<Db, DbError>
Expand description

Open the database and apply migrations (native), or build the in-memory stub (wasm). Native callers should block_on this in main() before mounting.