mirror of
https://github.com/knex/knex.git
synced 2025-07-04 15:41:07 +00:00
19 lines
409 B
JavaScript
19 lines
409 B
JavaScript
'use strict';
|
|
|
|
module.exports = function(client) {
|
|
|
|
var Raw = require('../../raw');
|
|
var inherits = require('inherits');
|
|
|
|
// Inherit from the `Raw` constructor's prototype,
|
|
// so we can add the correct `then` method.
|
|
function Raw_PG() {
|
|
this.client = client;
|
|
Raw.apply(this, arguments);
|
|
}
|
|
inherits(Raw_PG, Raw);
|
|
|
|
// Assign the newly extended `Raw` constructor to the client object.
|
|
client.Raw = Raw_PG;
|
|
|
|
}; |