Value in sqlparser::ast - Rust

pub enum Value {
Show 23 variants Number(String, bool), SingleQuotedString(String), DollarQuotedString(DollarQuotedString), TripleSingleQuotedString(String), TripleDoubleQuotedString(String), EscapedStringLiteral(String), UnicodeStringLiteral(String), SingleQuotedByteStringLiteral(String), DoubleQuotedByteStringLiteral(String), TripleSingleQuotedByteStringLiteral(String), TripleDoubleQuotedByteStringLiteral(String), SingleQuotedRawStringLiteral(String), DoubleQuotedRawStringLiteral(String), TripleSingleQuotedRawStringLiteral(String), TripleDoubleQuotedRawStringLiteral(String), NationalStringLiteral(String), QuoteDelimitedStringLiteral(QuoteDelimitedString), NationalQuoteDelimitedStringLiteral(QuoteDelimitedString), HexStringLiteral(String), DoubleQuotedString(String), Boolean(bool), Null, Placeholder(String),
}
Expand description

Primitive SQL values such as number and string

§

Numeric literal

§

‘string value’

§

Dollar-quoted string literal, e.g. $$...$$ or $tag$...$tag$ (Postgres syntax).

§

Triple single quoted strings: Example ‘’‘abc’‘’ BigQuery

§

Triple double quoted strings: Example “”“abc”“” BigQuery

§

e’string value’ (postgres extension) See Postgres docs for more details.

§

u&‘string value’ (postgres extension) See Postgres docs for more details.

§

B’string value’

§

B“string value“

§

Triple single quoted literal with byte string prefix. Example B'''abc''' BigQuery

§

Triple double quoted literal with byte string prefix. Example B"""abc""" BigQuery

§

Single quoted literal with raw string prefix. Example R'abc' BigQuery

§

Double quoted literal with raw string prefix. Example R"abc" BigQuery

§

Triple single quoted literal with raw string prefix. Example R'''abc''' BigQuery

§

Triple double quoted literal with raw string prefix. Example R"""abc""" BigQuery

§

N’string value’

§

Quote delimited literal. Examples Q'{ab'c}', Q'|ab'c|', Q'|ab|c|' Oracle

§

“National” quote delimited literal. Examples Q'{ab'c}', Q'|ab'c|', Q'|ab|c|' Oracle

§

X’hex value’

§

Double quoted string literal, e.g. "abc".

§

Boolean value true or false

§

NULL value

§

? or $ Prepared statement arg placeholder

Source§
Source

If the underlying literal is a string, regardless of quote style, returns the associated string value

Source

Attach the provided span to this Value and return ValueWithSpan.

Source

Convenience for attaching an empty span to this Value.

§
§
§
§
§
§