File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -128,6 +128,22 @@ Pass chained method to the admin manager.
128128$arangoClient->admin()->getVersion();
129129```
130130
131+ ### connect(array $config = [ ] , ?GuzzleClient $httpClient = null): void
132+ You can update the config by calling the connect method. This replaces the underlying connection
133+ and prepares the connection for any requests that follow.
134+
135+ ```
136+ $config = [
137+ 'host' => 'http://localhost',
138+ 'port' => '8529',
139+ 'username' => 'your-other-database-username',
140+ 'password' => 'your-other-database-password',
141+ 'database'=> 'your-other-database'
142+ ];
143+
144+ $arangoClient->connect($config): void
145+ ```
146+
131147### disconnect(): bool
132148Disconnect from the current keep-alive connection, if any.
133149
You can’t perform that action at this time.
0 commit comments