aboutsummaryrefslogtreecommitdiff
path: root/vnext/server/db/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/server/db/index.js')
-rw-r--r--vnext/server/db/index.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/vnext/server/db/index.js b/vnext/server/db/index.js
new file mode 100644
index 00000000..9c9e564b
--- /dev/null
+++ b/vnext/server/db/index.js
@@ -0,0 +1,10 @@
+import debug from 'debug'
+var log = debug('db')
+
+import { Sequelize } from 'sequelize'
+
+const db = new Sequelize(process.env.DATABASE_URL, {
+ logging: (...msg) => log(msg)
+})
+
+export default db