1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-09 12:12:35 +01:00

rethinkdb

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

13
package-lock.json generated
View File

@ -14,7 +14,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",
@ -1348,6 +1349,11 @@
"node": ">=0.10.0"
}
},
"node_modules/rethinkdb-ts": {
"version": "2.4.5",
"resolved": "https://registry.npmjs.org/rethinkdb-ts/-/rethinkdb-ts-2.4.5.tgz",
"integrity": "sha512-Dcp6+TTyFjfSwX7Ai0JWnOr+dfAv7FrWUs/ufSGU+auapWuolwn/WjpvKYrPMpwgvgOHeJldA8IE8yTW2nYc7g=="
},
"node_modules/rimraf": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",
@ -2682,6 +2688,11 @@
"resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-2.0.0.tgz",
"integrity": "sha1-lICrIOlP+h2egKgEx+oUdhGWa1c="
},
"rethinkdb-ts": {
"version": "2.4.5",
"resolved": "https://registry.npmjs.org/rethinkdb-ts/-/rethinkdb-ts-2.4.5.tgz",
"integrity": "sha512-Dcp6+TTyFjfSwX7Ai0JWnOr+dfAv7FrWUs/ufSGU+auapWuolwn/WjpvKYrPMpwgvgOHeJldA8IE8yTW2nYc7g=="
},
"rimraf": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",

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