mirror of
https://github.com/knex/knex.git
synced 2025-07-04 15:41:07 +00:00

To make it possible for individual dialects to provide their own variant of common SQL-functions like NOW()
11 lines
309 B
JavaScript
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;
|
|
|
|
}; |