Skip to main content

Module db

Module db 

Source
Expand description

SQLite pool setup and migration runner.

Enums§

DbError
Errors that can occur while opening the database.

Statics§

MIGRATIONS
Embedded migrations. Resolved at compile time so the binary stays self-contained and no separate migration command is needed.

Functions§

open_and_migrate
Open the SQLite pool from a sqlx connection URL and apply any pending migrations. Uses WAL journaling so reads do not block writes.