Skip to main content

parse_pivot

Function parse_pivot 

Source
pub fn parse_pivot(sql: &str) -> SqlResult<Option<PivotClause>>
Expand description

Parse a simple SELECT * FROM <source> PIVOT (<agg>(<col>) FOR <dim> IN (<vals>)) statement.

Returns Ok(None) when the SQL does not contain a PIVOT clause.