pub struct CteRef {
pub name: String,
pub work: Option<usize>,
pub write: Option<usize>,
pub origins: Vec<Option<(u32, i16)>>,
pub transition: bool,
}Expand description
The query of WITH that a relation of FROM reads, as a RangeTblEntry of the kind RTE_CTE.
Fields§
§name: Stringctename.
work: Option<usize>For the reference of a recursive query to itself, as self_reference, the number of the work table that the recursive UNION fills at each step. The relation then has no subquery. Another reference has a copy of the query of WITH as its subquery.
write: Option<usize>For a reference to a statement that changes data, the number of Cte::write. The relation then has no subquery, and its rows are the rows of RETURNING of the statement.
origins: Vec<Option<(u32, i16)>>The table and the column of each column of the reference to a statement that changes data, from the targets of its RETURNING.
transition: boolTrue for a transition table of the trigger that runs, as a RangeTblEntry of the kind RTE_NAMEDTUPLESTORE. The relation then has no subquery, and its rows are the old or the new rows of the write that fired the trigger.