Skip to main content

Module sql

Module sql 

Source

Modules§

agg
SQLR-3 aggregate runtime.
db
dialect
SQLRite SQL dialect.
executor
Query executors — evaluate parsed SQL statements against the in-memory storage and produce formatted output.
fts
Full-text search (FTS) — inverted-index keyword retrieval with BM25 ranking. Pure algorithms; no SQL integration in this module.
hnsw
HNSW (Hierarchical Navigable Small World) approximate-nearest-neighbor index. Pure algorithm; no SQL integration in this module.
pager
On-disk persistence for a Database, using fixed-size paged files.
params
Prepared-statement parameter binding (SQLR-23).
parser
pragma
SQL-level PRAGMA dispatcher (SQLR-13).

Structs§

CommandOutput
Output of running one SQL statement through the engine.

Enums§

SQLCommand

Functions§

process_ast_with_render
Same as process_command_with_render but takes a pre-parsed Statement. SQLR-23 — Statement / Connection::prepare_cached dispatch through this entry point so they pay the sqlparser cost once at prepare time, not per execute.
process_command
Backwards-compatible wrapper around process_command_with_render that returns just the status string. Every existing call site (the public Connection::execute, the SDK FFI shims, the .ask meta-command’s inline runner, the engine’s own tests) keeps working unchanged.
process_command_with_render
Performs initial parsing of SQL Statement using sqlparser-rs.