run

Function run 

Source
pub(crate) async fn run(pool: &PgPool) -> Result<(), Error>
Expand description

Executes the embedded schema DDL against the database.

All statements use IF NOT EXISTS, so this is safe to call on every application startup. Runs as a single implicit transaction via sqlx::raw_sql.

ยงErrors

Returns sqlx::Error if any DDL statement fails (e.g., permission denied, type mismatch with an existing column).