0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/server/data/db/index.js
Hannah Wolfe 1c85650108 Move db connection out of config
refs #5047

- database connections are not configuration
2016-02-12 13:56:23 +00:00

10 lines
228 B
JavaScript

var connection;
Object.defineProperty(exports, 'knex', {
enumerable: true,
configurable: false,
get: function get() {
connection = connection || require('./connection');
return connection;
}
});