Skip to main content

Crate quarb_sqlite

Crate quarb_sqlite 

Source
Expand description

SQLite adapter for the Quarb query engine.

A thin catalog driver over the shared relational model (quarb-relational): it introspects the schema via PRAGMAs (table_info, foreign_key_list), streams every user table, maps SQLite’s storage classes to values (NULL → null, INTEGER/REAL → numbers, text as itself, blobs as a size placeholder), and hands the result to RelationalModel.

The arbor mapping, the foreign-key reference machinery (--> chains, ->/<- crosslinks, <-- reverse resolution, the table-naming hint), and the metadata surface are documented on the shared model.

Structs§

SqliteAdapter
A SQLite database, materialized as an arbor.

Enums§

SqliteError
An error loading a database.

Functions§

column_catalog
The catalog for a pushed plan’s column-type assumptions (quarb_sql::ColumnTypes::hold): every column of tables, with whether SQLite gives it a numeric affinity. A column of INTEGER, REAL or NUMERIC affinity holds numbers and compares with a numeric literal as Quarb’s scan does; a TEXT or untyped column compares by storage class ('150' is not 150, and any text is greater than any number), which the scan’s comparison by value is not.
raw_query