Skip to main content

build_sqlite_temp_table_create

Function build_sqlite_temp_table_create 

Source
pub fn build_sqlite_temp_table_create(
    backend: &DatabaseBackend,
    temp_table: &str,
    table: &str,
    columns: &[ColumnDef],
    constraints: &[TableConstraint],
) -> BuiltQuery
Expand description

Build the CREATE TABLE statement for a SQLite temp table, including all CHECK constraints. This combines build_create_table_for_backend with CHECK constraint injection.

table is the ORIGINAL table name (used for constraint naming). temp_table is the temporary table name.