24 lines
495 B
JavaScript
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
|