diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-02-05 15:19:37 +0100 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-02-05 15:19:37 +0100 |
commit | aa8710c33766572cd4429baea3dbd00ec48ffce3 (patch) | |
tree | bd63e8504de0dc183c14de156e6df2112c21960f /src | |
parent | Config (diff) | |
download | server-aa8710c33766572cd4429baea3dbd00ec48ffce3.tar.xz |
Database
Diffstat (limited to 'src')
-rw-r--r-- | src/Database.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Database.ts b/src/Database.ts new file mode 100644 index 00000000..d842ac6b --- /dev/null +++ b/src/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; |