pub struct Unpivot {
pub this: Expression,
pub value_column: Identifier,
pub name_column: Identifier,
pub columns: Vec<Expression>,
pub alias: Option<Identifier>,
pub value_column_parenthesized: bool,
pub include_nulls: Option<bool>,
pub extra_value_columns: Vec<Identifier>,
}Expand description
UNPIVOT operation
Fields§
§this: Expression§value_column: Identifier§name_column: Identifier§columns: Vec<Expression>§alias: Option<Identifier>§value_column_parenthesized: boolWhether the value_column was parenthesized in the original SQL
include_nulls: Option<bool>INCLUDE NULLS (true), EXCLUDE NULLS (false), or not specified (None)
extra_value_columns: Vec<Identifier>Additional value columns when parenthesized (e.g., (first_half_sales, second_half_sales))
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Unpivot
impl<'de> Deserialize<'de> for Unpivot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Unpivot
Auto Trait Implementations§
impl Freeze for Unpivot
impl RefUnwindSafe for Unpivot
impl Send for Unpivot
impl Sync for Unpivot
impl Unpin for Unpivot
impl UnwindSafe for Unpivot
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more