Support multiple versions of rooms

This commit is contained in:
Cadence Ember
2025-11-26 15:43:48 +13:00
parent e6c30f80b5
commit a441c476f8
29 changed files with 520 additions and 349 deletions
+15
View File
@@ -104,6 +104,21 @@ class From {
return r
}
/**
* @template {Col} Select
* @param {string} what
* @param {Select} col
*/
pluckAs(what, col) {
/** @type {Pluck<Table, Select>} */
// @ts-ignore
const r = this
r.cols = [`${what} AS ${col}`]
this.makeColsSafe = false
r.isPluck = true
return r
}
/**
* @param {string} sql
*/