UNPKG

@thisisagile/easy

Version:

Straightforward library for building domain-driven microservice architectures

23 lines (21 loc) 520 B
import { SqlQuery } from "./chunk-55SDDPJZ.mjs"; import { quote } from "./chunk-OKPGJD64.mjs"; // src/sql/Insert.ts var Insert = class extends SqlQuery { constructor(table, fields) { super(table); this.table = table; this.fields = fields; } toString() { return `INSERT INTO ${this.table} (${Object.keys(this.fields).join(", ")}) OUTPUT INSERTED.* VALUES (${Object.values(this.fields).map((v) => quote(v)).join(", ")});`; } }; export { Insert }; //# sourceMappingURL=chunk-NKSCRMWF.mjs.map