UNPKG

@sequeljs/ast

Version:

A SQL AST manager for JavaScript

21 lines 640 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const NodeExpression_1 = require("./NodeExpression"); const SQLLiteral_1 = require("./SQLLiteral"); class SQLFunction extends NodeExpression_1.default { constructor(expr, aliaz = null) { super(); this.alias = null; if (aliaz) { this.alias = new SQLLiteral_1.default(aliaz); } this.distinct = false; this.expressions = expr; } as(aliaz) { this.alias = new SQLLiteral_1.default(aliaz); return this; } } exports.default = SQLFunction; //# sourceMappingURL=SQLFunction.js.map