2015-05-02 13:14:32 -04:00
|
|
|
// Knex.js
|
2015-04-24 14:57:35 -04:00
|
|
|
// --------------
|
2016-08-09 13:33:47 -04:00
|
|
|
// (c) 2013-present Tim Griesser
|
2015-04-24 14:57:35 -04:00
|
|
|
// Knex may be freely distributed under the MIT license.
|
|
|
|
// For details and documentation:
|
|
|
|
// http://knexjs.org
|
|
|
|
|
2020-12-30 22:26:08 +02:00
|
|
|
const knex = require('./lib/index');
|
|
|
|
|
|
|
|
/**
|
|
|
|
* These export configurations enable JS and TS developers
|
|
|
|
* to consume knex in whatever way best suits their needs.
|
|
|
|
* Some examples of supported import syntax includes:
|
|
|
|
* - `const knex = require('knex')`
|
|
|
|
* - `const { knex } = require('knex')`
|
|
|
|
* - `import * as knex from 'knex'`
|
|
|
|
* - `import { knex } from 'knex'`
|
|
|
|
* - `import knex from 'knex'`
|
|
|
|
*/
|
|
|
|
knex.knex = knex;
|
|
|
|
knex.default = knex;
|
|
|
|
|
|
|
|
module.exports = knex;
|