sql-bricks
Advanced tools
Comparing version
{ | ||
"name": "sql-bricks", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"author": "Peter Rust <peter@cornerstonenw.com>", | ||
@@ -5,0 +5,0 @@ "description": "Transparent, Schemaless SQL Generation", |
@@ -26,2 +26,6 @@ (function() { | ||
} | ||
sql.setDefaultOpts = setDefaultOpts; | ||
function setDefaultOpts(opts) { | ||
default_opts = _.extend(default_opts, opts); | ||
} | ||
sql.prototype.toString = function toString(opts) { | ||
@@ -80,2 +84,3 @@ // replacer(match, [capture1, capture2, ...,] offset, string) | ||
str = str.replace(/\?/g, replacer); | ||
else if (opts.placeholder == '') {} | ||
else | ||
@@ -82,0 +87,0 @@ throw new Error('Unsupported placeholder: "' + opts.placeholder + '"'); |
341882
0.05%8065
0.06%