Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,18 @@ Create the Rethink driver object by injecting a `Connection` object into it.
<?php
use TBolier\RethinkQL\Rethink;
use TBolier\RethinkQL\Connection\Registry;
use TBolier\RethinkQL\Connection\Options;

$connections = [
'default_connection' => [
'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);
Expand All @@ -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).
Examples on ReQL operations can be [found here](examples/operations.md).
15 changes: 8 additions & 7 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,18 @@ Create the Rethink driver object by injecting a `Connection` object into it.
<?php
use TBolier\RethinkQL\Rethink;
use TBolier\RethinkQL\Connection\Registry;
use TBolier\RethinkQL\Connection\Options;

$connections = [
'default_connection' => [
'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);
Expand Down