node
ModuleThe nodes of the syntax tree.
Contents
use utopia_query::ast::node::Aliased;pub struct AliasedAn expression with an alias: expression AS alias.
use utopia_query::ast::node::Between;pub struct Betweenexpression [NOT] BETWEEN low AND high.
use utopia_query::ast::node::Binary;pub struct BinaryA binary operation: left operator right.
use utopia_query::ast::node::CaseWhen;pub struct CaseWhenOne WHEN condition THEN result of a CASE.
use utopia_query::ast::node::Cast;pub struct CastCAST(expression AS type) (or PostgreSQL's expression::type).
use utopia_query::ast::node::Column;pub struct ColumnA column reference: [schema.][table.]name.
use utopia_query::ast::node::Conditional;pub struct ConditionalCASE [operand] WHEN ... THEN ... [ELSE ...] END.
use utopia_query::ast::node::Cte;pub struct CteA common table expression: name [(columns)] AS (query).
use utopia_query::ast::node::Exists;pub struct Exists[NOT] EXISTS (subquery).
use utopia_query::ast::node::Func;pub struct FuncA function call: NAME([DISTINCT] args) [FILTER (WHERE ...)].
use utopia_query::ast::node::In;pub struct InUndocumented.
use utopia_query::ast::node::JoinClause;pub struct JoinClauseA join: TYPE source [ON condition].
use utopia_query::ast::node::Literal;pub struct LiteralA literal: a string, an integer, a float, a boolean or NULL.
use utopia_query::ast::node::OrderByItem;pub struct OrderByItemOne ORDER BY item: expression ASC|DESC [NULLS FIRST|LAST].
use utopia_query::ast::node::Placeholder;pub struct PlaceholderA bound parameter placeholder, written as is (?, :name, $1).
use utopia_query::ast::node::Raw;pub struct RawSQL written as is.
use utopia_query::ast::node::Select;pub struct SelectA SELECT statement.
use utopia_query::ast::node::Star;pub struct Star*, table.* or schema.table.*.
use utopia_query::ast::node::Subquery;pub struct SubqueryA scalar subquery: (SELECT ...).
use utopia_query::ast::node::SubquerySource;pub struct SubquerySourceA subquery used as a table: (SELECT ...) AS alias.
use utopia_query::ast::node::Table;pub struct TableA table reference: [schema.]name [AS alias].
use utopia_query::ast::node::Unary;pub struct UnaryA unary operation: operator (operand) when prefix, else
operand operator (IS NULL, IS NOT NULL).
use utopia_query::ast::node::Window;pub struct WindowA window function call: function OVER name or function OVER (specification).
use utopia_query::ast::node::WindowDefinition;pub struct WindowDefinitionA named window: WINDOW name AS (specification).
use utopia_query::ast::node::WindowSpecification;pub struct WindowSpecificationA window: [PARTITION BY ...] [ORDER BY ...] [ROWS|RANGE frame].
use utopia_query::ast::node::Expression;pub enum ExpressionAn expression: a column, a literal, an operation, a function call, a subquery.
use utopia_query::ast::node::InList;pub enum InListWhat an IN tests against.
use utopia_query::ast::node::TableSource;pub enum TableSourceWhat a FROM or a join reads: a table or a subquery.
From.