@uwdata/mosaic-sql
Version:
SQL query construction and analysis.
14 lines • 669 B
JavaScript
import { WithClauseNode } from '../ast/with.js';
/**
* Create a common table expression (CTE) to include within a WITH clause.
* @param name The common table expression (CTE) name.
* @param query The common table expression (CTE) query.
* @param materialized The common table expression (CTE)
* materialization flag. If `true`, forces materialization of the CTE.
* If `false`, materialization is not performed. Otherwise (for example, if
* `undefined` or `null`), materialization is decided by the database.
*/
export function cte(name, query, materialized = null) {
return new WithClauseNode(name, query, materialized);
}
//# sourceMappingURL=cte.js.map