diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-02-05 22:01:01 +0100 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-02-05 22:01:01 +0100 |
commit | ea41892fef208b10c1bb322de7683c39ebab3dd5 (patch) | |
tree | f26559c73196591ac0338a21908a25c806276a7a /src/util/Database.ts | |
parent | Move Models/Schemas to server-util (diff) | |
download | server-ea41892fef208b10c1bb322de7683c39ebab3dd5.tar.xz |
:wrench: build
Diffstat (limited to 'src/util/Database.ts')
-rw-r--r-- | src/util/Database.ts | 6 |
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; |