UNPKG

@sequeljs/ast

Version:

A SQL AST manager for JavaScript

36 lines 963 B
import SelectManager from '../managers/SelectManager'; import InnerJoin from '../nodes/InnerJoin'; import OuterJoin from '../nodes/OuterJoin'; export default class SelectPredications { from() { return new SelectManager(this); } group(...columns) { return this.from().group(...columns); } having(expr) { return this.from().having(expr); } join(relation, klass = InnerJoin) { return this.from().join(relation, klass); } order(...expr) { return this.from().order(...expr); } outerJoin(relation) { return this.join(relation, OuterJoin); } project(...things) { return this.from().project(...things); } skip(amount) { return this.from().skip(amount); } take(amount) { return this.from().take(amount); } where(condition) { return this.from().where(condition); } } //# sourceMappingURL=SelectPredications.js.map