We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9f51372 + 4d4f334 commit 3c26c9aCopy full SHA for 3c26c9a
lib/builder.js
@@ -27,7 +27,7 @@ Builder.prototype._reset = function() {
27
};
28
29
Builder.prototype._getPlaceholder = function() {
30
- return (this.options.namedValues ? 'p' : '') + (this._placeholderId++);
+ return (this.options.namedValues ? 'p' : '') + (this.options.usePlaceholderId ? (this._placeholderId++) : '');
31
32
33
Builder.prototype._wrapPlaceholder = function(name) {
@@ -64,7 +64,8 @@ Builder.prototype.configure = function(options) {
64
namedValues: true,
65
valuesPrefix: '$',
66
dialect: 'base',
67
- wrappedIdentifiers: true
+ wrappedIdentifiers: true,
68
+ usePlaceholderId: true
69
});
70
71
this.setDialect(this.options.dialect);
0 commit comments