Builder for named WINDOW clause definitions.
Used with SelectBuilder.window() to define reusable window specifications.
SelectBuilder.window()
const w = new WindowDefBuilder() .partitionBy('dept') .orderBy(col('salary').desc());const sql = select('id').from('t').window('w', w).toSql(); Copy
const w = new WindowDefBuilder() .partitionBy('dept') .orderBy(col('salary').desc());const sql = select('id').from('t').window('w', w).toSql();
Free the underlying WASM handle.
Set the ORDER BY expressions.
Set the PARTITION BY expressions.
Builder for named WINDOW clause definitions.
Used with
SelectBuilder.window()to define reusable window specifications.Example