diff options
| author | Jan Tuomi <jan.tuomi@eficode.com> | 2020-02-01 16:33:56 +0200 |
|---|---|---|
| committer | Jan Tuomi <jan.tuomi@eficode.com> | 2020-02-01 16:33:56 +0200 |
| commit | a5ae2653d8ccdaf00270c0c8c8a30b88d7955114 (patch) | |
| tree | bd265901dbda512fb1f6d717beb545234468d7ec /backend/src/db.js | |
| parent | fbf108595a00a7c9db5984158e4b02cc345b68d1 (diff) | |
Do stuff
Diffstat (limited to 'backend/src/db.js')
| -rw-r--r-- | backend/src/db.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/backend/src/db.js b/backend/src/db.js new file mode 100644 index 0000000..2573239 --- /dev/null +++ b/backend/src/db.js @@ -0,0 +1,4 @@ +const config = require('../knexfile')[process.env.NODE_ENV || 'development']; +const knex = require('knex')(config); + +module.exports = knex; |
