@sqlrooms/pivot / createPivotQuerySource
Function: createPivotQuerySource()
createPivotQuerySource(
tableRef,columns):PivotQuerySource
Creates a pivot query source from an existing SQL-rendered table reference.
Use this when the caller has already resolved and validated the table at a SQL boundary and can provide the available columns.
Parameters
| Parameter | Type |
|---|---|
tableRef | RawSqlTableReference |
columns | PivotField[] |