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
sqlite3Atoidoes: 0 when there is none. - sqlite_
boolean - Reads a boolean setting the way SQLite’s
sqlite3GetBooleandoes. - sqlite_
int32 - Reads a 32 bit integer the way SQLite’s
sqlite3GetInt32does. - sqlite_
integer - Reads a 64 bit integer the way SQLite’s
sqlite3DecOrHexToI64does. - sqlite_
safety_ level - Reads a setting the way SQLite’s
getSafetyLeveldoes.