pub fn parse(sql: &str) -> Result<ParsedStatement, SqlError>Expand description
Parses one SQL statement.
The statement may end with a single ;. Keywords are case-insensitive and
identifiers are case-sensitive. Names are not checked against a schema:
that happens when the statement is executed.
§Errors
SqlError::Parsewhensqlis not a single statement of the supported grammar. The error carries the 1-based line and column of the offending token.SqlError::MissingWhereClausewhen anUPDATEorDELETEhas noWHEREclause.