2021-11-07 14:22:49 +01:00
|
|
|
const QueryBuilder = require('../../../query/querybuilder.js');
|
|
|
|
|
|
|
|
module.exports = class QueryBuilder_PostgreSQL extends QueryBuilder {
|
|
|
|
using(tables) {
|
|
|
|
this._single.using = tables;
|
|
|
|
return this;
|
|
|
|
}
|
2022-01-20 22:54:03 +01:00
|
|
|
|
|
|
|
withMaterialized(alias, statementOrColumnList, nothingOrStatement) {
|
|
|
|
this._validateWithArgs(
|
|
|
|
alias,
|
|
|
|
statementOrColumnList,
|
|
|
|
nothingOrStatement,
|
|
|
|
'with'
|
|
|
|
);
|
|
|
|
return this.withWrapped(
|
|
|
|
alias,
|
|
|
|
statementOrColumnList,
|
|
|
|
nothingOrStatement,
|
|
|
|
true
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
withNotMaterialized(alias, statementOrColumnList, nothingOrStatement) {
|
|
|
|
this._validateWithArgs(
|
|
|
|
alias,
|
|
|
|
statementOrColumnList,
|
|
|
|
nothingOrStatement,
|
|
|
|
'with'
|
|
|
|
);
|
|
|
|
return this.withWrapped(
|
|
|
|
alias,
|
|
|
|
statementOrColumnList,
|
|
|
|
nothingOrStatement,
|
|
|
|
false
|
|
|
|
);
|
|
|
|
}
|
2021-11-07 14:22:49 +01:00
|
|
|
};
|