pub enum Value {
Number(String, bool),
SingleQuotedString(String),
DollarQuotedString(DollarQuotedString),
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’
DollarQuotedString(DollarQuotedString)
EscapedStringLiteral(String)
e’string value’ (postgres extension) See Postgres docs for more details.
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<'de> Deserialize<'de> for Value
impl<'de> Deserialize<'de> for Value
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for Value
impl Ord for Value
source§impl PartialEq<Value> for Value
impl PartialEq<Value> 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