Skip to main content

ensure_schema

Function ensure_schema 

Source
pub async fn ensure_schema(
    pool: &AnyPool,
    cfg: &SqlConfig,
) -> Result<(), JournalError>
Expand description

Apply the migration DDL for the configured dialect. Statements are split on ; so a single embedded SQL file can bootstrap every required table.