How to use the knex.Initialize function in knex

To help you get started, we’ve selected a few knex examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cobyism / ghost-on-heroku / core / shared / models / knex_init.js View on Github external
(function () {
    "use strict";

    var knex = require('knex'),
        config = require('../../../config');

    knex.Initialize(config.database[process.env.NODE_ENV || 'development']);

    module.exports = knex;
}());
github TryGhost / Ghost / core / shared / models / knex_init.js View on Github external
(function () {
    "use strict";

    var knex = require('knex'),
        config = require('../../../config');

    knex.Initialize(config.database[process.env.NODE_ENV || 'development']);

    module.exports = knex;
}());