objection
Version:
An SQL-friendly ORM for Node.js
23 lines (17 loc) • 499 B
JavaScript
;
const { QueryTransformation } = require('./QueryTransformation');
class CompositeQueryTransformation extends QueryTransformation {
constructor(transformations) {
super();
this.transformations = transformations;
}
onConvertQueryBuilderBase(item, builder) {
for (const transformation of this.transformations) {
item = transformation.onConvertQueryBuilderBase(item, builder);
}
return item;
}
}
module.exports = {
CompositeQueryTransformation,
};