TableRef in oxide_sql_core::ast - Rust

pub enum TableRef {
    Table {
        schema: Option<String>,
        name: String,
        alias: Option<String>,
    },
    Subquery {
        query: Box<SelectStatement>,
        alias: String,
    },
    Join {
        left: Box<TableRef>,
        join: Box<JoinClause>,
    },
}
Expand description

A table reference in FROM clause.

§

A simple table name.

Fields

§

A subquery.

Fields

Alias (required for subqueries).

§

A joined table.

Fields

Source§
Source

Creates a simple table reference.

Source

Creates a table reference with schema.

Source

Adds an alias to this table reference.

Source§
Source§
Source§
Source§
Source§

Tests for self and other values to be equal, and is used by ==.

1.0.0 · Source§

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Source§

§
§
§
§
§
§