pub fn parse_next_statement_into(
source: &[u8],
offset: usize,
limits: &Limits,
arena: Ast,
) -> Result<ParsedStatement, ParseError>Expand description
Parses one statement into an arena the caller supplies.
The same parse as parse_next_statement, with the arena handed in rather
than made. A caller that compiles statement after statement keeps one and
gets its capacity back on every parse after the first, which on SELECT 1
is most of what a parse costs.
@param source - the SQL text @param offset - where in it this statement starts @param limits - the limits to enforce @param arena - the arena to fill, cleared first