@sequeljs/ast
Version:
A SQL AST manager for JavaScript
19 lines • 410 B
JavaScript
export default 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;
}
}
//# sourceMappingURL=SQLString.js.map