Skip to main content

scan_sql

Function scan_sql 

Source
pub fn scan_sql(sql: &str) -> Result<ScanResult, ScanError>
Expand description

Scans sql for :name placeholders and the tables its FROM/JOIN clauses read, without executing or fully parsing it. See the module docs for the exact rules and their limits.

Uses the same SQLiteDialect the SQL engine itself speaks, so a colon or an identifier tokenizes identically here and at execution time.