docs(README): update

This commit is contained in:
Philipp Kunz 2018-01-14 18:07:29 +01:00
parent 4aec47f207
commit 7630882312

View File

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