knex/lib/utils.js
2014-06-03 00:47:54 -04:00

11 lines
192 B
JavaScript

module.exports = {
pgBindings: function(sql) {
var questionCount = 0;
return sql.replace(/\?/g, function() {
questionCount++;
return '$' + questionCount;
});
}
};