mirror of
https://github.com/knex/knex.git
synced 2025-07-18 22:42:37 +00:00
24 lines
476 B
JavaScript
24 lines
476 B
JavaScript
![]() |
// Oracle Pool
|
||
|
// ------
|
||
|
module.exports = function(client) {
|
||
|
|
||
|
var _ = require('lodash');
|
||
|
var inherits = require('inherits');
|
||
|
var Pool = require('../../pool');
|
||
|
|
||
|
function Pool_Oracle() {
|
||
|
this.client = client;
|
||
|
Pool.apply(this, arguments);
|
||
|
}
|
||
|
inherits(Pool_Oracle, Pool);
|
||
|
|
||
|
Pool_Oracle.prototype.defaults = function() {
|
||
|
return _.extend(Pool.prototype.defaults.call(this), {
|
||
|
destroy: function(client) { client.close(); }
|
||
|
});
|
||
|
};
|
||
|
|
||
|
client.Pool = Pool_Oracle;
|
||
|
|
||
|
};
|