Skip to main content

open_db

Function open_db 

Source
pub async fn open_db(path: &Path) -> StorageResult<DbPool>
Expand description

Open (or create) the SQLite database at the given path.

Configures WAL mode + foreign keys + busy timeout. Runs migrations from the migrations/ directory at compile time via sqlx::migrate!.