Enum sqlparser::sqlast::SQLType  [−][src]
pub enum SQLType {
    Char(usize),
    Varchar(usize),
    Clob(usize),
    Binary(usize),
    Varbinary(usize),
    Blob(usize),
    Decimal(usize, Option<usize>),
    SmallInt,
    Int,
    BigInt,
    Float(Option<usize>),
    Real,
    Double,
    Boolean,
    Date,
    Time,
    Timestamp,
}SQL datatypes for literals in SQL statements
Variants
Char(usize)Fixed-length character type e.g. CHAR(10)
Varchar(usize)Variable-length character type e.g. VARCHAR(10)
Clob(usize)Large character object e.g. CLOB(1000)
Binary(usize)Fixed-length binary type e.g. BINARY(10)
Varbinary(usize)Variable-length binary type e.g. VARBINARY(10)
Blob(usize)Large binary object e.g. BLOB(1000)
Decimal(usize, Option<usize>)Decimal type with precision and optional scale e.g. DECIMAL(10,2)
SmallIntSmall integer
IntInteger
BigIntBig integer
Float(Option<usize>)Floating point with optional precision e.g. FLOAT(8)
RealFloating point e.g. REAL
DoubleDouble e.g. DOUBLE PRECISION
BooleanBoolean
DateDate
TimeTime
TimestampTimestamp
Trait Implementations
impl Debug for SQLType[src] 
impl Debug for SQLTypefn fmt(&self, f: &mut Formatter) -> Result[src] 
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for SQLType[src] 
impl Clone for SQLTypefn clone(&self) -> SQLType[src] 
fn clone(&self) -> SQLTypeReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src] 
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl PartialEq for SQLType[src] 
impl PartialEq for SQLType