/** * Expose `OracleConnection`. */ module.exports = OracleConnection; /** * Module dependencies. */ var Connection = require('connection') , debug = require('debug')('oracle-connection') , util = require('util') , inherits = util.inherits , assert = require('assert'); /** * Create a new `OracleConnection` with the given `options`. * * @param {Object} options * @return {Connection} */ function OracleConnection(options) { Connection.apply(this, arguments); this.options = options; debug('created with options', options); // provide the oracle jugglingdb adapter this.adapter = require('jugglingdb-oracle'); } /** * Inherit from `AsteroidModule`. */ inherits(OracleConnection, Connection); /** * Define options. */ OracleConnection.options = { 'hostname': {type: 'string', required: true}, 'port': {type: 'number', min: 10, max: 99999}, 'username': {type: 'string'}, 'password': {type: 'string'} };