pub enum Value {
Number(String, bool),
SingleQuotedString(String),
EscapedStringLiteral(String),
NationalStringLiteral(String),
HexStringLiteral(String),
DoubleQuotedString(String),
Boolean(bool),
Null,
Placeholder(String),
UnQuotedString(String),
}
Expand description
Primitive SQL values such as number and string
Variants§
Number(String, bool)
Numeric literal
SingleQuotedString(String)
‘string value’
EscapedStringLiteral(String)
e’string value’ (postgres extension) <https://www.postgresql.org/docs/8.3/sql-syntax-lexical.html#SQL-SYNTAX-STRINGS
NationalStringLiteral(String)
N’string value’
HexStringLiteral(String)
X’hex value’
DoubleQuotedString(String)
Boolean(bool)
Boolean value true or false
Null
NULL
value
Placeholder(String)
?
or $
Prepared statement arg placeholder
UnQuotedString(String)
Add support of snowflake field:key - key should be a value
Trait Implementations§
source§impl Ord for Value
impl Ord for Value
source§impl PartialOrd<Value> for Value
impl PartialOrd<Value> for Value
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more