pub struct Node {Show 37 fields
pub op: String,
pub aff: String,
pub outer_on: bool,
pub join: i64,
pub inner_on: bool,
pub cursor: i64,
pub index: i64,
pub table: Option<String>,
pub column: Option<String>,
pub declared: Option<String>,
pub affinity: Option<String>,
pub not_null: bool,
pub rowid: bool,
pub outer: bool,
pub strict: bool,
pub generated: bool,
pub subtype: bool,
pub view: bool,
pub register: bool,
pub coll: Option<String>,
pub name: Option<String>,
pub value: Option<String>,
pub agg: bool,
pub window: bool,
pub over: bool,
pub distinct: bool,
pub args: Vec<Node>,
pub order_by: Vec<Node>,
pub partition_by: Vec<Node>,
pub frame_start: Option<String>,
pub frame_end: Option<String>,
pub exclude: Option<String>,
pub filter: bool,
pub left: Option<Box<Node>>,
pub right: Option<Box<Node>>,
pub list: Vec<Node>,
pub select: Option<Box<Sel>>,
}Expand description
One expression node. op names the kind; op, aff, outerOn and innerOn are 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.
Fields§
§op: String§aff: Stringsqlite3ExprAffinity: integer, real, text, blob, numeric or none.
outer_on: boolA WHERE term that came from an outer join’s ON clause, which SQLite moves into the WHERE:
it restricts the join’s right side (the cursor join, present with it) and removes no row.
join: i64§inner_on: boolA WHERE term that came from an inner join’s ON clause.
cursor: i64§index: i64§table: Option<String>§column: Option<String>§declared: Option<String>§affinity: Option<String>A column’s, and a cast’s: the affinity it converts to.
not_null: bool§rowid: bool§outer: bool§strict: boolThe column’s table is STRICT.
generated: boolThe column is generated.
subtype: boolThe column is VIRTUAL and computed by a function or from another generated column: its value, computed where it is read, may carry the JSON subtype.
view: boolThe column is a view’s, as a write through the view’s INSTEAD OF trigger reads it.
register: boolThe column of the row the statement wrote, as its RETURNING reads it: from the registers
that hold the row, with no cursor (cursor is a register’s number).
coll: Option<String>The column’s collation, which a comparison with it uses where the column decides.
name: Option<String>§value: Option<String>§agg: bool§window: boolA window call, or an aggregate with a FILTER, which SQLite holds as a window as well.
over: boolA window call: one with an OVER clause, which has every member from partition_by to
filter.
distinct: bool§args: Vec<Node>§order_by: Vec<Node>An aggregate’s own ORDER BY, absent where it has none, or a window call’s.
partition_by: Vec<Node>A window call’s PARTITION BY.
frame_start: Option<String>A window call’s frame: where it starts (unbounded, which is UNBOUNDED PRECEDING,
preceding, current or following) and ends (unbounded is UNBOUNDED FOLLOWING), and
what it excludes (no, current, group or ties), a named window’s included.
frame_end: Option<String>§exclude: Option<String>§filter: boolA window call with a FILTER.
left: Option<Box<Node>>§right: Option<Box<Node>>§list: Vec<Node>§select: Option<Box<Sel>>