mirror of
https://github.com/knex/knex.git
synced 2025-10-06 13:35:49 +00:00
24 lines
709 B
JavaScript
24 lines
709 B
JavaScript
'use strict';
|
|
|
|
// Oracle Client
|
|
// -------
|
|
var inherits = require('inherits');
|
|
var Oracle = require('../oracle');
|
|
|
|
// Always initialize with the "QueryBuilder" and "QueryCompiler"
|
|
// objects, which extend the base 'lib/query/builder' and
|
|
// 'lib/query/compiler', respectively.
|
|
function Client_StrongOracle() {
|
|
Oracle.apply(this, arguments);
|
|
}
|
|
inherits(Client_StrongOracle, Oracle);
|
|
|
|
// Lazy-load the strong-oracle dependency, since we might just be
|
|
// using the client to generate SQL strings.
|
|
Client_StrongOracle.prototype.initDriver = function() {
|
|
Client_StrongOracle.prototype.driver = Client_StrongOracle.prototype.driver ||
|
|
require('strong-oracle')();
|
|
};
|
|
|
|
module.exports = Client_StrongOracle;
|