Skip to main content

ensure_table

Function ensure_table 

Source
pub async fn ensure_table(db: &Db, sql: &str) -> Result<(), Error>
Expand description

Run an arbitrary CREATE TABLE IF NOT EXISTS … (or any other idempotent DDL) supplied by an AdminUiModel. Generic — every model brings its own schema string.