UNPKG

ddl-manager

Version:

store postgres procedures and triggers in files

20 lines 488 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.doIf = void 0; const ast_1 = require("../../../../ast"); function doIf(condition, doBlock) { if (!doBlock.length) { return []; } if (!condition || condition.isEmpty()) { return doBlock; } return [new ast_1.If({ if: condition, then: [ ...doBlock ] })]; } exports.doIf = doIf; //# sourceMappingURL=doIf.js.map