ddl-manager
Version:
store postgres procedures and triggers in files
12 lines • 686 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseFromTable = void 0;
const TableID_1 = require("../database/schema/TableID");
const defaults_1 = require("./defaults");
const TableReference_1 = require("../database/schema/TableReference");
function parseFromTable(tableLink, alias) {
var _a;
return new TableReference_1.TableReference(new TableID_1.TableID(((_a = tableLink.row.schema) === null || _a === void 0 ? void 0 : _a.toValue()) || defaults_1.DEFAULT_SCHEMA, tableLink.row.name.toValue()), alias === null || alias === void 0 ? void 0 : alias.toValue());
}
exports.parseFromTable = parseFromTable;
//# sourceMappingURL=utils.js.map