@thisisagile/easy
Version:
Straightforward library for building domain-driven microservice architectures
18 lines (16 loc) • 489 B
JavaScript
import {
Select
} from "./chunk-SSQRH66L.mjs";
import {
ifGet
} from "./chunk-SJGQU3OG.mjs";
// src/sql/Count.ts
var Count = class extends Select {
toString() {
return `SELECT COUNT(*)` + ifGet(this._top, ` TOP ${this._top}`, "") + ` FROM ${this.table}` + ifGet(this.clauses.length, ` WHERE ${this.clauses.join(" AND ")}`, "") + ifGet(this.grouped.length, ` GROUP BY ${this.grouped.join(", ")}`, "") + ";";
}
};
export {
Count
};
//# sourceMappingURL=chunk-LXENNRRB.mjs.map