Enum prql_compiler::sql::internal::SqlTransform
source · pub enum SqlTransform {
Super(Transform),
Distinct,
Except {
bottom: TableRef,
distinct: bool,
},
Intersect {
bottom: TableRef,
distinct: bool,
},
Union {
bottom: TableRef,
distinct: bool,
},
Loop(Vec<SqlTransform>),
}Variants§
Implementations§
source§impl SqlTransform
impl SqlTransform
sourcepub fn as_super_mut(&mut self) -> Option<&mut Transform>
pub fn as_super_mut(&mut self) -> Option<&mut Transform>
Optionally returns mutable references to the inner fields if this is a SqlTransform::Super, otherwise None
sourcepub fn as_super(&self) -> Option<&Transform>
pub fn as_super(&self) -> Option<&Transform>
Optionally returns references to the inner fields if this is a SqlTransform::Super, otherwise None
sourcepub fn into_super(self) -> Result<Transform, Self>
pub fn into_super(self) -> Result<Transform, Self>
Returns the inner fields if this is a SqlTransform::Super, otherwise returns back the enum in the Err case of the result
sourcepub fn is_distinct(&self) -> bool
pub fn is_distinct(&self) -> bool
Returns true if this is a SqlTransform::Distinct, otherwise false
sourcepub fn as_except_mut(&mut self) -> Option<(&mut TableRef, &mut bool)>
pub fn as_except_mut(&mut self) -> Option<(&mut TableRef, &mut bool)>
Optionally returns mutable references to the inner fields if this is a SqlTransform::Except, otherwise None
sourcepub fn as_except(&self) -> Option<(&TableRef, &bool)>
pub fn as_except(&self) -> Option<(&TableRef, &bool)>
Optionally returns references to the inner fields if this is a SqlTransform::Except, otherwise None
sourcepub fn into_except(self) -> Result<(TableRef, bool), Self>
pub fn into_except(self) -> Result<(TableRef, bool), Self>
Returns the inner fields if this is a SqlTransform::Except, otherwise returns back the enum in the Err case of the result
sourcepub fn as_intersect_mut(&mut self) -> Option<(&mut TableRef, &mut bool)>
pub fn as_intersect_mut(&mut self) -> Option<(&mut TableRef, &mut bool)>
Optionally returns mutable references to the inner fields if this is a SqlTransform::Intersect, otherwise None
sourcepub fn as_intersect(&self) -> Option<(&TableRef, &bool)>
pub fn as_intersect(&self) -> Option<(&TableRef, &bool)>
Optionally returns references to the inner fields if this is a SqlTransform::Intersect, otherwise None
sourcepub fn into_intersect(self) -> Result<(TableRef, bool), Self>
pub fn into_intersect(self) -> Result<(TableRef, bool), Self>
Returns the inner fields if this is a SqlTransform::Intersect, otherwise returns back the enum in the Err case of the result
sourcepub fn as_union_mut(&mut self) -> Option<(&mut TableRef, &mut bool)>
pub fn as_union_mut(&mut self) -> Option<(&mut TableRef, &mut bool)>
Optionally returns mutable references to the inner fields if this is a SqlTransform::Union, otherwise None
sourcepub fn as_union(&self) -> Option<(&TableRef, &bool)>
pub fn as_union(&self) -> Option<(&TableRef, &bool)>
Optionally returns references to the inner fields if this is a SqlTransform::Union, otherwise None
sourcepub fn into_union(self) -> Result<(TableRef, bool), Self>
pub fn into_union(self) -> Result<(TableRef, bool), Self>
Returns the inner fields if this is a SqlTransform::Union, otherwise returns back the enum in the Err case of the result
sourcepub fn as_loop_mut(&mut self) -> Option<&mut Vec<SqlTransform>>
pub fn as_loop_mut(&mut self) -> Option<&mut Vec<SqlTransform>>
Optionally returns mutable references to the inner fields if this is a SqlTransform::Loop, otherwise None
sourcepub fn as_loop(&self) -> Option<&Vec<SqlTransform>>
pub fn as_loop(&self) -> Option<&Vec<SqlTransform>>
Optionally returns references to the inner fields if this is a SqlTransform::Loop, otherwise None
sourcepub fn into_loop(self) -> Result<Vec<SqlTransform>, Self>
pub fn into_loop(self) -> Result<Vec<SqlTransform>, Self>
Returns the inner fields if this is a SqlTransform::Loop, otherwise returns back the enum in the Err case of the result
source§impl SqlTransform
impl SqlTransform
Trait Implementations§
source§impl AsRef<str> for SqlTransform
impl AsRef<str> for SqlTransform
source§impl Clone for SqlTransform
impl Clone for SqlTransform
source§fn clone(&self) -> SqlTransform
fn clone(&self) -> SqlTransform
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more