Skip to main content

reylo_engine_sqlite/
lib.rs

1//! Reylo's analysis engine for SQLite, over the core every database shares
2//! ([`reylo_engine_core`]): SQLite's own resolved tree, from an amalgamation patched with the
3//! engine's hooks ([`sqlite_tree`]), and the function tables and row-count proof over it
4//! ([`sqlite`]). No other parser is linked: what SQLite resolves is what the analysis reads.
5//!
6//! Two hosts link it: `reylo-engine` (`engine/native`), whose program the `reylo` binary serves; and
7//! a host that runs [`sqlite::analyze_ddl`] over a connection of
8//! its own.
9
10pub mod api;
11pub mod capabilities;
12pub mod errors;
13pub mod host;
14pub mod sqlite;
15pub mod sqlite_tree;
16
17use reylo_engine_core::{analysis, dialect, fresh, lex, stack, structured, types};
18
19pub use api::Sqlite;
20
21/// A fingerprint of the sources this engine was built from: core's and this crate's
22/// ([`reylo_engine_core::fingerprint`]).
23pub const FINGERPRINT: &str = reylo_engine_core::fingerprint!("REYLO_ENGINE_SQLITE_HASH");