Skip to main content

Module sqlite

Module sqlite 

Source
Expand description

SQLite in-DB SQL-on-FHIR runner.

SqliteInDbRunner compiles a ViewDefinition to a parameterised SQLite SELECT statement and executes it directly against the resources table, bypassing in-process FHIRPath evaluation entirely.

§Streaming

Rows are sent one-by-one through a bounded tokio::sync::mpsc channel (buffer: 256) so the HTTP layer can begin flushing to the client before the full result set is read. The blocking SQLite iteration runs in a dedicated spawn_blocking thread so it never stalls the async runtime.

Structs§

SqliteInDbRunner
SQL-on-FHIR runner that compiles ViewDefinitions to SQLite SQL.