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.
pub fn parse_pivot(sql: &str) -> SqlResult<Option<PivotClause>>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.