diff options
| author | jw255 | 2018-03-05 18:00:43 +0000 |
|---|---|---|
| committer | jw255 | 2018-03-05 18:00:43 +0000 |
| commit | 1185b11873f67df1732394ff502580192aad7935 (patch) | |
| tree | 276ea7e350df2633b82afc3bb53f670c86c9ebc7 /src/db/orm.ts | |
| parent | authentication tests in progress (diff) | |
| parent | fixed merge conflict (diff) | |
| download | medicine-1185b11873f67df1732394ff502580192aad7935.tar.gz medicine-1185b11873f67df1732394ff502580192aad7935.zip | |
Merge branch ‘trh/payload-checker’ into testing-middleware
Diffstat (limited to 'src/db/orm.ts')
| -rw-r--r-- | src/db/orm.ts | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/db/orm.ts b/src/db/orm.ts index 01d8037..fd70fbb 100644 --- a/src/db/orm.ts +++ b/src/db/orm.ts @@ -1,12 +1,15 @@ +import { logQuery } from '../logger'; import { Sequelize } from 'sequelize-typescript'; const seq: Sequelize = new Sequelize({ - database: 'be4', - dialect: 'postgres', - username: 'admin', - password: '', - operatorsAliases: false, - modelPaths: [`${__dirname}/model`] + database: 'be4', + dialect: 'postgres', + username: 'admin', + password: '', + operatorsAliases: false, + modelPaths: [`${__dirname}/model`], + logging: logQuery, + benchmark: true }); export default seq; |
