2026-02-01 13:01:28 +00:00

24 lines
495 B
JavaScript

import { entityKind } from "./entity.js";
class Subquery {
static [entityKind] = "Subquery";
constructor(sql, selection, alias, isWith = false) {
this._ = {
brand: "Subquery",
sql,
selectedFields: selection,
alias,
isWith
};
}
// getSQL(): SQL<unknown> {
// return new SQL([this]);
// }
}
class WithSubquery extends Subquery {
static [entityKind] = "WithSubquery";
}
export {
Subquery,
WithSubquery
};
//# sourceMappingURL=subquery.js.map