pub struct UnpivotStatement {
pub source: Box<TableFactor>,
pub on: Vec<Expr>,
pub into: Option<UnpivotInto>,
}Expand description
DuckDB statement-form UNPIVOT:
UNPIVOT <source> ON <expr>[, …] [INTO NAME <ident> VALUE <ident>[, …]]
The query counterpart to TableFactor::Unpivot; see PivotStatement.
https://duckdb.org/docs/stable/sql/statements/unpivot.
Fields§
§source: Box<TableFactor>The relation being unpivoted (table name, table function, or subquery).
on: Vec<Expr>ON — the columns collapsed into name/value rows.
into: Option<UnpivotInto>INTO NAME … VALUE … — the name/value output columns. None uses
DuckDB’s defaults (name/value).
Trait Implementations§
Source§impl Clone for UnpivotStatement
impl Clone for UnpivotStatement
Source§impl Debug for UnpivotStatement
impl Debug for UnpivotStatement
Source§impl<'de> Deserialize<'de> for UnpivotStatement
impl<'de> Deserialize<'de> for UnpivotStatement
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
Source§impl Display for UnpivotStatement
impl Display for UnpivotStatement
impl Eq for UnpivotStatement
Source§impl Hash for UnpivotStatement
impl Hash for UnpivotStatement
Source§impl Ord for UnpivotStatement
impl Ord for UnpivotStatement
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for UnpivotStatement
impl PartialEq for UnpivotStatement
Source§impl PartialOrd for UnpivotStatement
impl PartialOrd for UnpivotStatement
Source§impl Serialize for UnpivotStatement
impl Serialize for UnpivotStatement
impl StructuralPartialEq for UnpivotStatement
Source§impl Visit for UnpivotStatement
impl Visit for UnpivotStatement
Source§impl VisitMut for UnpivotStatement
impl VisitMut for UnpivotStatement
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
Auto Trait Implementations§
impl Freeze for UnpivotStatement
impl RefUnwindSafe for UnpivotStatement
impl Send for UnpivotStatement
impl Sync for UnpivotStatement
impl Unpin for UnpivotStatement
impl UnsafeUnpin for UnpivotStatement
impl UnwindSafe for UnpivotStatement
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