Struct sea_query::table::ColumnDef [−][src]
pub struct ColumnDef { /* fields omitted */ }
Expand description
Specification of a table column
Implementations
Construct a table column with column type
Set default value of a column
Set column auto increment
Set column unique constraint
Set column as primary key
Set column type as string with custom length
Set column type as tiny_integer with custom length
Set column type as tiny_integer
Set column type as small_integer with custom length
Set column type as small_integer
Set column type as integer with custom length
Set column type as big_integer with custom length
Set column type as big_integer
Set column type as float with custom precision
Set column type as double with custom precision
Set column type as decimal with custom precision and scale
Set column type as date_time with custom precision
Set column type as timestamp with custom precision
Set column type as timestamp with time zone. Postgres only
Set column type as timestamp with time zone plus custom precision
Set column type as time with custom precision
Set column type as binary with custom length
Set column type as money with custom precision ans scale
Set column type as json.
On MySQL, this is equivalent to json_binary
. On MariaDB, this is equivalent to text
.
On PgSQL, this is equivalent to json
.
Set column type as json binary.
On MySQL, this is equivalent to json
. On MariaDB, this is equivalent to text
.
On PgSQL, this is equivalent to jsonb
.
Use a custom type on this column.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ColumnDef
impl !UnwindSafe for ColumnDef
Blanket Implementations
Mutably borrows from an owned value. Read more