Skip to main content

run_migrations

Function run_migrations 

Source
pub async fn run_migrations(pool: &SqlitePool) -> Result<(), Error>
Expand description

Run codlet’s embedded SQLite migrations against pool.

Uses IF NOT EXISTS semantics; safe to call on every startup.

§Errors

Returns a sqlx::Error if the SQL execution fails.