UNPKG

ddl-manager

Version:

store postgres procedures and triggers in files

19 lines 636 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AbstractMigrator = void 0; class AbstractMigrator { constructor(postgres, migration, database, outputErrors) { this.postgres = postgres; this.migration = migration; this.database = database; this.outputErrors = outputErrors; } onError(obj, err) { // redefine callstack const newErr = new Error(obj.getSignature() + "\n" + (err.stack || "")); this.outputErrors.push(newErr); } } exports.AbstractMigrator = AbstractMigrator; //# sourceMappingURL=AbstractMigrator.js.map