UNPKG

ddl-manager

Version:

store postgres procedures and triggers in files

20 lines 613 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Body = void 0; const AbstractAstElement_1 = require("./AbstractAstElement"); class Body extends AbstractAstElement_1.AbstractAstElement { constructor(row) { super(); Object.assign(this, row); } template(spaces) { return [ ...(this.declares || []).map(declare => declare.toSQL()), "begin", ...this.statements.map(statement => statement.toSQL(spaces.plusOneLevel())), "end" ]; } } exports.Body = Body; //# sourceMappingURL=Body.js.map