mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-23 16:55:50 +00:00
✨ rethinkdb
This commit is contained in:
Generated
BIN
Binary file not shown.
+2
-1
@@ -24,7 +24,8 @@
|
||||
"express-cache-middleware": "^1.0.1",
|
||||
"lambert-db": "^1.0.3",
|
||||
"missing-native-js-functions": "^1.0.8",
|
||||
"node-fetch": "^2.6.1"
|
||||
"node-fetch": "^2.6.1",
|
||||
"rethinkdb-ts": "^2.4.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^14.14.10",
|
||||
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
import { r } from "rethinkdb-ts";
|
||||
|
||||
async function main() {
|
||||
await r.connectPool();
|
||||
|
||||
const result = await r.db("test").tableCreate("authors").run();
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
main();
|
||||
Reference in New Issue
Block a user