Skip to main content

ensure_table

Function ensure_table 

Source
pub async fn ensure_table(db: &DatabaseConnection) -> Result<()>
Expand description

Creates the __database_seeders tracking table when missing.

Idempotent CREATE TABLE IF NOT EXISTS, callable from the library without a separate migration run. Returns an error when the DDL fails.