Expand description
Helper constants and functions for implementing Introspect
on SQLite connections. No driver dependency — just SQL strings
and type-mapping logic that any SQLite driver crate can use.
Constants§
- FOREIGN_
KEY_ LIST - PRAGMA to get foreign key list for a table.
Replace
{table}with the actual table name. - INDEX_
INFO - PRAGMA to get the columns of an index.
Replace
{index}with the actual index name. - INDEX_
LIST - PRAGMA to get the index list for a table.
Replace
{table}with the actual table name. - LIST_
TABLES - SQL to list all user tables (excludes internal SQLite tables).
- TABLE_
INFO - PRAGMA to get column info for a table.
Replace
{table}with the actual table name.
Functions§
- column_
from_ pragma - Builds a
ColumnSnapshotfrom rawPRAGMA table_inforow data. - parse_
sqlite_ type - Maps a SQLite type affinity string to a
DataType.