UNPKG

ddl-manager

Version:

store postgres procedures and triggers in files

31 lines 1.03 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AbstractExpressionElement = void 0; const lodash_1 = require("lodash"); const AbstractAstElement_1 = require("../AbstractAstElement"); class AbstractExpressionElement extends AbstractAstElement_1.AbstractAstElement { // redefine me children() { return []; } equal(otherElem) { return this.toString() === otherElem.toString(); } getColumnReferences() { return lodash_1.flatMap(this.children(), (elem) => elem.getColumnReferences()); } getFuncCalls() { return lodash_1.flatMap(this.children(), (elem) => elem.getFuncCalls()); } replaceTable(replaceTable, toTable) { return this.clone(); } replaceColumn(replaceColumn, toSql) { return this.clone(); } replaceFuncCall(replaceFunc, toSql) { return this.clone(); } } exports.AbstractExpressionElement = AbstractExpressionElement; //# sourceMappingURL=AbstractExpressionElement.js.map