Skip to main content

tokenize_with

Function tokenize_with 

Source
pub fn tokenize_with(
    input: &str,
    backslash_escapes: bool,
) -> Result<Vec<Token>, LexError>
Expand description

v7.22 (round-13 T3) — dialect-aware tokenizer entry. With backslash_escapes = true, plain '…' strings honour MySQL / pre-9.1-PG backslash escapes (\' \\ \n …, the same decode the E'…' form uses). mysqldump ALWAYS emits \'-escaped data sections, and pg_dump ALWAYS announces PG semantics via SET standard_conforming_strings = on — the engine flips this flag off/on from those deterministic session signals.