pub struct From {
pub namespace: Option<String>,
pub table: String,
pub alias: String,
pub on: Vec<(Name, Name)>,
pub left: bool,
pub function: Option<String>,
}Expand description
One entry of the from list: a table, what this query calls it, and what joins it.
Fields§
§namespace: Option<String>The schema qualifying the table’s name, if it was written: pg_catalog.pg_class.
table: StringThe table’s name in the schema.
alias: StringThe name a qualified column reference uses — the alias, or the table’s own name.
on: Vec<(Name, Name)>The on equalities, as (this table’s column, an earlier table’s column). Empty for the
first entry, which nothing joins to, and for a comma join, whose equality is in the
where.
left: boolleft join: a row of the table before this one survives with nulls where this one has no
match. The catalogue is full of them — pg_class left join pg_am is how psql asks for a
table’s access method without losing the tables that have none.
function: Option<String>A from item that is a function call rather than a relation. Parsed so that a query
carrying one in a branch nothing evaluates is not refused for it, and refused by name if
anything asks it for a row.