pub enum RelationInheritance {
Plain,
Descendants,
Only(OnlySyntax),
}Expand description
PostgreSQL relation_expr inheritance marker on a table reference: whether a
query reaches the relation’s descendant (inheritance-child) tables, plus the
source spelling that asked for it.
One canonical shape for the four legal relation_expr spellings,
chosen so the impossible ONLY name * combination is structurally
unrepresentable: the * and ONLY markers are sibling variants that can
never co-occur. Plain and Descendants are semantically identical in
PostgreSQL (both leave inh = true, so a bare t and an explicit t *
select the same rows); the distinct variant exists only to round-trip the
source * exactly.
Variants§
Plain
Bare name: descendant tables included implicitly.
Descendants
name *: descendant tables included via the explicit legacy star marker.
Only(OnlySyntax)
ONLY name / ONLY (name): descendant tables suppressed.
Trait Implementations§
Source§impl Clone for RelationInheritance
impl Clone for RelationInheritance
Source§fn clone(&self) -> RelationInheritance
fn clone(&self) -> RelationInheritance
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more