Enum sqlparser::sqlast::SQLType[][src]

pub enum SQLType {
    Char(usize),
    Varchar(usize),
    Clob(usize),
    Binary(usize),
    Varbinary(usize),
    Blob(usize),
    Decimal(usizeOption<usize>),
    SmallInt,
    Int,
    BigInt,
    Float(Option<usize>),
    Real,
    Double,
    Boolean,
    Date,
    Time,
    Timestamp,
}

SQL datatypes for literals in SQL statements

Variants

Fixed-length character type e.g. CHAR(10)

Variable-length character type e.g. VARCHAR(10)

Large character object e.g. CLOB(1000)

Fixed-length binary type e.g. BINARY(10)

Variable-length binary type e.g. VARBINARY(10)

Large binary object e.g. BLOB(1000)

Decimal type with precision and optional scale e.g. DECIMAL(10,2)

Small integer

Integer

Big integer

Floating point with optional precision e.g. FLOAT(8)

Floating point e.g. REAL

Double e.g. DOUBLE PRECISION

Boolean

Date

Time

Timestamp

Trait Implementations

impl Debug for SQLType
[src]

Formats the value using the given formatter. Read more

impl Clone for SQLType
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for SQLType
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for SQLType

impl Sync for SQLType