pub const MAX_QUERY_BYTES: usize = _ /* 4_194_304usize */;Expand description
ADR-0257: maximum size of a Cypher query text accepted by parse, in
bytes (4 MiB). Enforced before lexing so that adversarial inputs cannot
amplify into unbounded token allocations (LABS-81: 8 MiB of commas used to
become >=520 MB of tokens). Every query path – the Rust API, the C ABI,
the CLI, the TCK, and Bolt – funnels through the parser’s entry points,
each of which constructs through Parser::new, the one site the cap is
enforced, so this single check covers them all.