Expand description
SQLite’s resolved parse tree, as csrc/reylo_sqlite.c serializes it: what SQLite itself
resolved while preparing the statement against an in-memory replay of the schema DDL.
Every member the walker always writes is required, so that one it stops writing, or spells
otherwise, fails the analysis with an error naming it, where a default would read it as
false, 0 or nothing: for a fact such as “on the null-extended side of a join”, the unsound
answer. A member the walker writes for some objects only has #[serde(default)] and says when
it is absent; where that turns on the object’s kind (a node’s op, a write’s kind), the
members of each kind are required once the object is read ([Members]). A member no struct
declares is refused, so the walker writes nothing the analysis does not read.
Structs§
- Col
- Column
Info - Dml
- An INSERT, an UPDATE (
kindupdate, orupsertfor an upsert’s DO UPDATE) or a DELETE: each kind’s members are required by [Members], and absent from the other kinds. - From
- Node
- One expression node.
opnames the kind;op,aff,outerOnandinnerOnare every node’s, and the members after them belong to some kinds only, absent from the others: [Members] requires the ones a node’s kind always has. - Public
Column - Public
Param - Schema
Error - Sel
- SetItem
- Table
Info - Tree
- Tree
Error - Upsert
Constants§
- TREE_
VERSION - The version of the tree’s format, which the walker writes as the tree’s first member
(
REYLO_TREE_VERSIONincsrc/reylo_sqlite.c): a tree of another is refused, by both numbers, before anything in it is read. A change to what either side reads or writes moves both.
Functions§
- analyze
- Prepares
sqlagainst the schemaddlinside the embedded SQLite and returns what it resolved.functionsare the host’s own scalar functions, by name and argument count (-1 for any): the replay registers a stub for each, so a statement that calls one prepares.hostis every function the host’s SQLite has, when the host could list them: the replay registers a stub for one the embedded build has no function of that name for, and the prepare refuses a call to one the embedded build has and the host does not.sentis the statement as the application runs it, whose text names the columns. - version
- The version of the embedded SQLite, as
3.53.4: the one that prepares every statement the engine types, whichever SQLite reads the database file or runs the statement.
Type Aliases§
- Listed
- A function the host’s SQLite lists (
pragma_function_list): its name, its argument count as SQLite keeps it (-1 for any number) and its kind,sfor a scalar,afor an aggregate,wfor a window function.