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)
SmallInt
Small integer
Int
Integer
BigInt
Big integer
Float(Option<usize>)
Floating point with optional precision e.g. FLOAT(8)
Real
Floating point e.g. REAL
Double
Double e.g. DOUBLE PRECISION
Boolean
Boolean
Date
Date
Time
Time
Timestamp
Timestamp
Trait Implementations
impl Debug for SQLType
[src]
impl Debug for SQLType
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for SQLType
[src]
impl Clone for SQLType
fn clone(&self) -> SQLType
[src]
fn clone(&self) -> SQLType
Returns 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