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). 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);