pub fn parse(sql: &str, limits: ParseLimits) -> Result<Vec<Statement>>Expand description
Parses a statement inside the bounds this module owns.
The text is prepared first, so the tree describes what the server will run rather than what the parser crate happens to keep. The preparation replaces delimiters with spaces and never removes a byte, so the ceiling measures the same size either way and a parser complaint still points at the right place in the caller’s own text.
§Errors
Returns a validation failure when the size ceiling is exceeded, when the parser thread cannot be started, or when the text does not parse.