From 7630882312ff0cbb1b4ae4318076edb1f74c4b23 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Sun, 14 Jan 2018 18:07:29 +0100 Subject: [PATCH] docs(README): update --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f2bf4e2..7a17fc7 100644 --- a/README.md +++ b/README.md @@ -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(); ```