pub enum Value {
Show 14 variants
Number(String, bool),
SingleQuotedString(String),
DollarQuotedString(DollarQuotedString),
EscapedStringLiteral(String),
SingleQuotedByteStringLiteral(String),
DoubleQuotedByteStringLiteral(String),
RawStringLiteral(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.
SingleQuotedByteStringLiteral(String)
B’string value’
DoubleQuotedByteStringLiteral(String)
B“string value“
RawStringLiteral(String)
R’string value’ or r’string value’ or r“string value“ https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical#quoted_literals
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 PartialEq for Value
impl PartialEq for Value
source§impl PartialOrd for Value
impl PartialOrd 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 moreimpl Eq for Value
impl StructuralEq for Value
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more