rethinkdb

This commit is contained in:
Flam3rboy 2021-01-03 22:44:44 +01:00
parent e5f35fbdf9
commit 4b245936b0
3 changed files with 12 additions and 1 deletions

BIN
package-lock.json generated

Binary file not shown.

View File

@ -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
src/test.ts Normal file
View File

@ -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();