Skip to content

Commit f7f124d

Browse files
committed
updated CHANGELOG
1 parent f790c3e commit f7f124d

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,32 @@
1+
Release notes for the ArangoDB-PHP driver 3.3.x
2+
===============================================
3+
4+
Starting from release 3.3.1, the PHP driver has support for automatic failover, for
5+
ArangoDB servers that are started in the "resilient single" or active/passive failover
6+
mode. This setup requires using ArangoDB 3.3.
7+
8+
In order to use automatic failover from the PHP driver, simply change the "endpoint"
9+
attribute of the connection options from a simple endpoint string into an array of
10+
endpoint strings:
11+
12+
$connectionOptions = [
13+
ConnectionOptions::OPTION_ENDPOINT => [ 'tcp://localhost:8531', 'tcp://localhost:8532', 'tcp://localhost:8530' ], // endpoints to connect to
14+
...
15+
];
16+
$connection = new Connection($connectionOptions);
17+
18+
instead of just
19+
20+
$connectionOptions = [
21+
ConnectionOptions::OPTION_ENDPOINT => 'tcp://localhost:8530', // endpoint to connect to
22+
...
23+
];
24+
$connection = new Connection($connectionOptions);
25+
26+
127
Release notes for the ArangoDB-PHP driver 3.2.0
228
===============================================
29+
330
- the default value for the authentication type of the `Connection` class is now `Basic`
431

532
- the default value for the connection type is now `Keep-Alive` and not `Close`

0 commit comments

Comments
 (0)