sqllang 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -109,6 +109,8 @@ Mostly Postgres-flavoured, with a few SQLite conveniences.
109
109
  `BETWEEN`, `IN`, `IS [NOT] NULL | TRUE | FALSE | DISTINCT FROM`
110
110
  - aggregates with `DISTINCT`, `FILTER (WHERE …)` and `ORDER BY` inside:
111
111
  `STRING_AGG(name, ', ' ORDER BY name)`
112
+ - `PIVOT(SUM(x) FOR col IN ('a', 'b'))` in a select list: one column per literal value, the same as
113
+ `SUM(x) FILTER (WHERE col = 'a') AS a, …` (values are literals, so the columns are known up front)
112
114
  - window functions: `ROW_NUMBER`, `RANK`, `DENSE_RANK`, `PERCENT_RANK`, `CUME_DIST`, `NTILE`,
113
115
  `LAG`, `LEAD`, `FIRST_VALUE`, `LAST_VALUE`, `NTH_VALUE`, and any aggregate `OVER (PARTITION BY … ORDER BY …)`
114
116
  (default frame: running to the current row's peers when ordered, the whole partition otherwise)