pub enum StringAggSyntax {
Argument(&'static str),
SeparatorKeyword {
func: &'static str,
backslash_escapes: bool,
},
}Expand description
Where a string_agg separator goes, and so whether it is a value or
text. Two dialects take it as an ordinary argument, where it binds like
any other value. MySQL’s grammar takes a literal after a keyword and
rejects a parameter there, which is the only reason this crate ever
writes a value into SQL instead of handing it to the driver.
Variants§
Argument(&'static str)
string_agg(x, $1) / group_concat(x, ?).
SeparatorKeyword
group_concat(x SEPARATOR '...'), the separator written out and
escaped. backslash_escapes says how: MySQL reads a backslash
inside a literal as an escape, so a lone one would carry the closing
quote away and has to be doubled. A session running
NO_BACKSLASH_ESCAPES reads the doubled pair as two backslashes,
which is not the separator asked for. The doubled pair is still no
way out of the literal, since a doubled quote escapes under either
mode.
Trait Implementations§
Source§impl Clone for StringAggSyntax
impl Clone for StringAggSyntax
Source§fn clone(&self) -> StringAggSyntax
fn clone(&self) -> StringAggSyntax
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more