Skip to main content

apply_schema

Function apply_schema 

Source
pub fn apply_schema(conn: &Connection) -> Result<()>
Expand description

Apply the schema to the database.

This uses execute_batch to run the entire DDL script. It is idempotent because all statements use IF NOT EXISTS.

ยงErrors

Returns an error if the SQL execution fails or pragmas cannot be set.