2013-05-19 23:17:21 +04:00
|
|
|
/*global require, module, process */
|
|
|
|
(function () {
|
|
|
|
"use strict";
|
|
|
|
|
2013-05-24 08:02:41 +04:00
|
|
|
var knex = require('knex'),
|
|
|
|
config = require('../../../config');
|
2013-05-19 23:17:21 +04:00
|
|
|
|
2013-05-24 08:02:41 +04:00
|
|
|
knex.Initialize(config.database[process.env.NODE_ENV || 'development']);
|
2013-05-19 23:17:21 +04:00
|
|
|
|
|
|
|
module.exports = knex;
|
|
|
|
}());
|