Skip to main content

ensure_schema

Function ensure_schema 

Source
pub async fn ensure_schema(
    pool: &SqlitePool,
    table_name: &str,
) -> Result<(), OutboxError>
Expand description

Apply the canonical SQLite outbox schema to the target database.

Intended for POCs, integration tests and local development. Production deployments should run their own migration tooling against the SQL rendered by Dialect::schema_ddl.

ยงErrors