knex/lib/dialects/postgres/functionhelper.js
Pelle Wessman bdc3b43655 Added a function helper collection
To make it possible for individual dialects to provide their own variant of common SQL-functions like NOW()
2014-07-18 12:41:23 +02:00

11 lines
309 B
JavaScript

module.exports = function(client) {
var FunctionHelper = require('../../functionhelper');
var FunctionHelper_PG = Object.create(FunctionHelper);
FunctionHelper_PG.client = client;
// Assign the newly extended `FunctionHelper` constructor to the client object.
client.FunctionHelper = FunctionHelper_PG;
};