Skip to main content

DDL_QUERY

Constant DDL_QUERY 

Source
pub const DDL_QUERY: &str = "select sql from sqlite_schema where sql is not null and type in ('table', 'view', 'index', 'trigger') order by rowid";
Expand description

The schema, as SQLite stores it: its sql column is the DDL the engine replays into its in-memory copy. The replayed entry asks the host for it; a host with a connection of its own runs it there and hands the rows to analyze_ddl.