pub enum SqlType {
Show 26 variants
Boolean,
TinyInt,
SmallInt,
Int,
BigInt,
UTinyInt,
USmallInt,
UInt,
UBigInt,
Real,
Double,
Decimal,
Char,
Varchar,
Binary,
Varbinary,
Time,
Date,
Timestamp,
Interval(IntervalUnit),
Array,
Struct,
Map,
Null,
Uuid,
Variant,
}Expand description
The available SQL types as specified in CREATE statements.
Variants§
Boolean
SQL BOOLEAN type.
TinyInt
SQL TINYINT type.
SmallInt
SQL SMALLINT or INT2 type.
Int
SQL INTEGER, INT, SIGNED, INT4 type.
BigInt
SQL BIGINT or INT64 type.
UTinyInt
SQL TINYINT UNSIGNED type.
USmallInt
SQL SMALLINT UNSIGNED type.
UInt
SQL UNSIGNED, INTEGER UNSIGNED, INT UNSIGNED type.
UBigInt
SQL BIGINT UNSIGNED type.
Real
SQL REAL or FLOAT4 or FLOAT32 type.
Double
SQL DOUBLE or FLOAT8 or FLOAT64 type.
Decimal
SQL DECIMAL or DEC or NUMERIC type.
Char
SQL CHAR(n) or CHARACTER(n) type.
Varchar
SQL VARCHAR, CHARACTER VARYING, TEXT, or STRING type.
Binary
SQL BINARY(n) type.
Varbinary
SQL VARBINARY or BYTEA type.
Time
SQL TIME type.
Date
SQL DATE type.
Timestamp
SQL TIMESTAMP type.
Interval(IntervalUnit)
SQL INTERVAL ... X type where X is a unit.
Array
SQL ARRAY type.
Struct
A complex SQL struct type (CREATE TYPE x ...).
Map
SQL MAP type.
Null
SQL NULL type.
Uuid
SQL UUID type.
Variant
SQL VARIANT type.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SqlType
impl<'de> Deserialize<'de> for SqlType
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl<'__s> ToSchema<'__s> for SqlType
impl<'__s> ToSchema<'__s> for SqlType
impl Copy for SqlType
impl Eq for SqlType
impl StructuralPartialEq for SqlType
Auto Trait Implementations§
impl Freeze for SqlType
impl RefUnwindSafe for SqlType
impl Send for SqlType
impl Sync for SqlType
impl Unpin for SqlType
impl UnwindSafe for SqlType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.