CreateTableOp in oxide_sql_core::migrations - Rust

Struct CreateTableOp 

Source

pub struct CreateTableOp {
    pub name: String,
    pub columns: Vec<ColumnDefinition>,
    pub constraints: Vec<TableConstraint>,
    pub if_not_exists: bool,
}
Expand description

Create table operation.

Table name.

§columns: Vec<ColumnDefinition>

Column definitions.

Table-level constraints.

Whether to use IF NOT EXISTS.

Source§
Source

Builds a CreateTableOp from a #[derive(Table)] struct using the given dialect for Rust-to-SQL type mapping.

Source

Same as from_table but with IF NOT EXISTS.

Source§
Source§
Source§
Source§

Converts to this type from the input type.

Source§
Source§

Tests for self and other values to be equal, and is used by ==.

1.0.0 · Source§

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Source§

§
§
§
§
§
§