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.
sqlite_atoi
Reads an integer the way SQLite’s sqlite3Atoi does: 0 when there is none.
sqlite_boolean
Reads a boolean setting the way SQLite’s sqlite3GetBoolean does.
sqlite_int32
Reads a 32 bit integer the way SQLite’s sqlite3GetInt32 does.
sqlite_integer
Reads a 64 bit integer the way SQLite’s sqlite3DecOrHexToI64 does.
sqlite_safety_level
Reads a setting the way SQLite’s getSafetyLevel does.