AK-21/Graphite-Industrial-Intelligence
0
1"use strict";2var __defProp = Object.defineProperty;3var __getOwnPropDesc = Object.getOwnPropertyDescriptor;4var __getOwnPropNames = Object.getOwnPropertyNames;5var __hasOwnProp = Object.prototype.hasOwnProperty;6var __export = (target, all) => {7 for (var name in all)8 __defProp(target, name, { get: all[name], enumerable: true });9};10var __copyProps = (to, from, except, desc) => {11 if (from && typeof from === "object" || typeof from === "function") {12 for (let key of __getOwnPropNames(from))13 if (!__hasOwnProp.call(to, key) && key !== except)14 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });15 }16 return to;17};18var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);19var subquery_exports = {};20__export(subquery_exports, {21 Subquery: () => Subquery,22 WithSubquery: () => WithSubquery23});24module.exports = __toCommonJS(subquery_exports);25var import_entity = require("./entity.cjs");26class Subquery {27 static [import_entity.entityKind] = "Subquery";28 constructor(sql, fields, alias, isWith = false, usedTables = []) {29 this._ = {30 brand: "Subquery",31 sql,32 selectedFields: fields,33 alias,34 isWith,35 usedTables36 };37 }38 // getSQL(): SQL<unknown> {39 // return new SQL([this]);40 // }41}42class WithSubquery extends Subquery {43 static [import_entity.entityKind] = "WithSubquery";44}45// Annotate the CommonJS export names for ESM import in node:460 && (module.exports = {47 Subquery,48 WithSubquery49});50//# sourceMappingURL=subquery.cjs.map