Skip to main content

Module declare

Module declare 

Source
Expand description

Reading a virtual table’s declaration and a pragma’s argument.

Invariant: nothing here touches a database. These are four pure functions over types this crate already owns, a Declaration and a PragmaArgument, and they are here rather than in a connection crate because both engines need them and neither should have to depend on the other to get them.

They lived in inillucent-session, which is the old engine’s connection, and the new engine’s statement path imported them from there. That was the last thing tying the new engine to the old one that was not itself an engine: two helpers that parse text. Moving them down removes the edge without changing a caller, because inillucent-session re-exports both under their old paths.

Functions§

argument_boolean
Reads a pragma argument as the boolean SQLite accepts.
argument_integer
Reads a pragma argument as an integer.
argument_text
Reads a pragma argument as text.
declared_columns
Returns the columns a module’s declaration provides.