knex/lib/dialects/postgres/schema/pg-viewbuilder.js

22 lines
404 B
JavaScript
Raw Normal View History

2021-10-20 22:23:29 +02:00
const ViewBuilder = require('../../../schema/viewbuilder.js');
class ViewBuilder_PG extends ViewBuilder {
constructor() {
super(...arguments);
}
checkOption() {
this._single.checkOption = 'default_option';
}
localCheckOption() {
this._single.checkOption = 'local';
}
cascadedCheckOption() {
this._single.checkOption = 'cascaded';
}
}
module.exports = ViewBuilder_PG;