UNPKG

@sequeljs/ast

Version:

A SQL AST manager for JavaScript

22 lines 501 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class SQLString { constructor() { this.bindIndex = 1; this.str = ''; } get value() { return this.str; } addBind(_, binder) { this.append(binder(this.bindIndex)); this.bindIndex += 1; return this; } append(str) { this.str = this.str.concat(str); return this; } } exports.default = SQLString; //# sourceMappingURL=SQLString.js.map