From 40e25f74f9bf623ccabdafcafcd748b10ac05071 Mon Sep 17 00:00:00 2001 From: Florent VIALATTE Date: Sun, 23 Feb 2020 14:18:36 +0100 Subject: [PATCH 1/2] Fix the getting started connect example --- readme.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/readme.md b/readme.md index b50cc3e..d677304 100644 --- a/readme.md +++ b/readme.md @@ -38,17 +38,18 @@ Create the Rethink driver object by injecting a `Connection` object into it. [ - 'host' => 'localhost', + 'default_connection' => new Options([ + 'hostname' => 'localhost', 'port' => 28015, - 'default_db' => 'demoDB', - 'user' => 'demo', - 'password' => 'demo', + 'dbname' => 'demoDB', + 'user' => 'admin', + 'password' => '', 'timeout' => 5, - 'timeout_stream' => 10, - ], + 'timeout_stream' => 10 + ]) ]; $registry = new Registry($connections); From 5a6d24ea779528382e52177f3fdf0894ceefe466 Mon Sep 17 00:00:00 2001 From: Florent VIALATTE Date: Sun, 23 Feb 2020 14:25:32 +0100 Subject: [PATCH 2/2] Update getting-started.md --- docs/getting-started.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/docs/getting-started.md b/docs/getting-started.md index 3d5156d..d564717 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -9,17 +9,18 @@ Create the Rethink driver object by injecting a `Connection` object into it. [ - 'host' => 'localhost', + 'default_connection' => new Options([ + 'hostname' => 'localhost', 'port' => 28015, - 'default_db' => 'demoDB', - 'user' => 'demo', - 'password' => 'demo', + 'dbname' => 'demoDB', + 'user' => 'admin', + 'password' => '', 'timeout' => 5, - 'timeout_stream' => 10, - ], + 'timeout_stream' => 10 + ]) ]; $registry = new Registry($connections); @@ -36,4 +37,4 @@ The driver class `Rethink` has an API Interface that supports the ReQL domain-sp ### Operations -Examples on ReQL operations can be [found here](examples/operations.md). \ No newline at end of file +Examples on ReQL operations can be [found here](examples/operations.md).