Rust

node

Module

The nodes of the syntax tree.

Contents

use utopia_query::ast::node::Aliased;
Rust
pub struct Aliased

An expression with an alias: expression AS alias.

use utopia_query::ast::node::Between;
Rust
pub struct Between

expression [NOT] BETWEEN low AND high.

use utopia_query::ast::node::Binary;
Rust
pub struct Binary

A binary operation: left operator right.

use utopia_query::ast::node::CaseWhen;
Rust
pub struct CaseWhen

One WHEN condition THEN result of a CASE.

use utopia_query::ast::node::Cast;
Rust
pub struct Cast

CAST(expression AS type) (or PostgreSQL's expression::type).

use utopia_query::ast::node::Column;
Rust
pub struct Column

A column reference: [schema.][table.]name.

use utopia_query::ast::node::Conditional;
Rust
pub struct Conditional

CASE [operand] WHEN ... THEN ... [ELSE ...] END.

use utopia_query::ast::node::Cte;
Rust
pub struct Cte

A common table expression: name [(columns)] AS (query).

use utopia_query::ast::node::Exists;
Rust
pub struct Exists

[NOT] EXISTS (subquery).

use utopia_query::ast::node::Func;
Rust
pub struct Func

A function call: NAME([DISTINCT] args) [FILTER (WHERE ...)].

use utopia_query::ast::node::In;
Rust
pub struct In

Undocumented.

use utopia_query::ast::node::JoinClause;
Rust
pub struct JoinClause

A join: TYPE source [ON condition].

use utopia_query::ast::node::Literal;
Rust
pub struct Literal

A literal: a string, an integer, a float, a boolean or NULL.

use utopia_query::ast::node::OrderByItem;
Rust
pub struct OrderByItem

One ORDER BY item: expression ASC|DESC [NULLS FIRST|LAST].

use utopia_query::ast::node::Placeholder;
Rust
pub struct Placeholder

A bound parameter placeholder, written as is (?, :name, $1).

use utopia_query::ast::node::Raw;
Rust
pub struct Raw

SQL written as is.

use utopia_query::ast::node::Select;
Rust
pub struct Select

A SELECT statement.

use utopia_query::ast::node::Star;
Rust
pub struct Star

*, table.* or schema.table.*.

use utopia_query::ast::node::Subquery;
Rust
pub struct Subquery

A scalar subquery: (SELECT ...).

use utopia_query::ast::node::SubquerySource;
Rust
pub struct SubquerySource

A subquery used as a table: (SELECT ...) AS alias.

use utopia_query::ast::node::Table;
Rust
pub struct Table

A table reference: [schema.]name [AS alias].

use utopia_query::ast::node::Unary;
Rust
pub struct Unary

A unary operation: operator (operand) when prefix, else operand operator (IS NULL, IS NOT NULL).

use utopia_query::ast::node::Window;
Rust
pub struct Window

A window function call: function OVER name or function OVER (specification).

use utopia_query::ast::node::WindowDefinition;
Rust
pub struct WindowDefinition

A named window: WINDOW name AS (specification).

use utopia_query::ast::node::WindowSpecification;
Rust
pub struct WindowSpecification

A window: [PARTITION BY ...] [ORDER BY ...] [ROWS|RANGE frame].

use utopia_query::ast::node::Expression;
Rust
pub enum Expression

An expression: a column, a literal, an operation, a function call, a subquery.

use utopia_query::ast::node::InList;
Rust
pub enum InList

What an IN tests against.

use utopia_query::ast::node::TableSource;
Rust
pub enum TableSource

What a FROM or a join reads: a table or a subquery.

Also implements From.