docs(README): update
This commit is contained in:
parent
4aec47f207
commit
7630882312
@ -51,9 +51,16 @@ represents a Database. Naturally it has .connect() etc. methods on it.
|
||||
import * as smartdata from "smartdata";
|
||||
|
||||
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();
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user