Skip to main content

Node

Struct Node 

Source
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: String

sqlite3ExprAffinity: integer, real, text, blob, numeric or none.

§outer_on: bool

A 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: bool

A 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: bool

The column’s table is STRICT.

§generated: bool

The column is generated.

§subtype: bool

The 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: bool

The column is a view’s, as a write through the view’s INSTEAD OF trigger reads it.

§register: bool

The 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: bool

A window call, or an aggregate with a FILTER, which SQLite holds as a window as well.

§over: bool

A 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: bool

A window call with a FILTER.

§left: Option<Box<Node>>§right: Option<Box<Node>>§list: Vec<Node>§select: Option<Box<Sel>>

Implementations§

Source§

impl<'de> Node

Source

pub fn deserialize<__D>(__deserializer: __D) -> Result<Node, __D::Error>
where __D: Deserializer<'de>,

Trait Implementations§

Source§

impl Debug for Node

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Node

Source§

fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

§

impl Forget for Node

§

impl Freeze for Node

§

impl Move for Node

§

impl RefUnwindSafe for Node

§

impl Send for Node

§

impl Sync for Node

§

impl Unpin for Node

§

impl UnsafeUnpin for Node

§

impl UnwindSafe for Node

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.