summary refs log tree commit diff
path: root/src/util/Database.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/Database.ts')
-rw-r--r--src/util/Database.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util/Database.ts b/src/util/Database.ts
new file mode 100644
index 00000000..d842ac6b
--- /dev/null
+++ b/src/util/Database.ts
@@ -0,0 +1,6 @@
+import { MongoDatabase } from "lambert-db";
+
+// TODO: load url from config
+const db = new MongoDatabase("mongodb://127.0.0.1:27017/lambert?readPreference=secondaryPreferred");
+
+export default db;