diff options
| author | Ran Guin <[email protected]> | 2021-05-20 16:32:21 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2021-06-09 16:05:31 -0700 |
| commit | 29801c124f3e4a5d58cd6b1b3a78d4ad9c79ccfb (patch) | |
| tree | af37bc941b9c15e3fd272a499dd3582aba992510 | |
| parent | 7b2aa4f02a8cdd29f979e6fb10f26949f4be315f (diff) | |
| download | coinos-server-29801c124f3e4a5d58cd6b1b3a78d4ad9c79ccfb.tar.gz coinos-server-29801c124f3e4a5d58cd6b1b3a78d4ad9c79ccfb.zip | |
include knex global for linear queries
| -rw-r--r-- | db/index.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/db/index.js b/db/index.js index 41593069..d89cc828 100644 --- a/db/index.js +++ b/db/index.js @@ -11,6 +11,17 @@ db = new Sequelize(conf.database, conf.user, conf.password, { dialectOptions: conf.dialectOptions }); +debug('knex conf: ' + JSON.stringify(conf)) +knex = require('knex')({ + client: 'mysql2', + connection: { + user: conf.user, + password: conf.password, + database: conf.database, + host: conf.host + } +}) + require("./models/accounts.js"); require("./models/codes.js"); require("./models/deposits.js"); |
