Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
766ae1d1ff | |||
7630882312 |
@ -51,9 +51,16 @@ represents a Database. Naturally it has .connect() etc. methods on it.
|
|||||||
import * as smartdata from "smartdata";
|
import * as smartdata from "smartdata";
|
||||||
|
|
||||||
let myRethinkDb1 = new smartdata.Db({
|
let myRethinkDb1 = new smartdata.Db({
|
||||||
// rethinkDb connection options here
|
db: "test",
|
||||||
|
host: "https://some",
|
||||||
|
user: "testuser",
|
||||||
|
password: "testpass",
|
||||||
|
port: 1234
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// in case you need to support a proprietory ssl cert (e.g. compose.com):
|
||||||
|
myRethinkDb1.setSsl(process.env.RDB_CERT, "base64");
|
||||||
|
|
||||||
myDb1.connect();
|
myDb1.connect();
|
||||||
```
|
```
|
||||||
|
|
||||||
|
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "smartdata",
|
"name": "smartdata",
|
||||||
"version": "2.0.5",
|
"version": "2.0.6",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "smartdata",
|
"name": "smartdata",
|
||||||
"version": "2.0.5",
|
"version": "2.0.6",
|
||||||
"description": "do more with data",
|
"description": "do more with data",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"typings": "dist/index.d.ts",
|
"typings": "dist/index.d.ts",
|
||||||
|
Reference in New Issue
Block a user