Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var fortune = require('fortune')
, orm = require('orm')
, RSVP = fortune.RSVP
, _ = fortune._;
var adapter = {};
adapter._init = function(options) {
var _this = this;
// Setup ORM instance.
this.orm = orm.connect({
host: options.host,
database: options.db,
protocol: options.adapter,
user: options.username,
password: options.password,
port: options.port,
query: options.flags
});