Created
December 7, 2017 09:07
-
-
Save ikwattro/bbb8c140946b5b1fd52395ed3b15a1db to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyController | |
{ | |
private $client; | |
public function __construct(Client $client) | |
{ | |
$this->client = $client; | |
} | |
public function doSomeQueries() | |
{ | |
// Query DB 1 | |
$result = $this->client->run('MATCH (n) RETURN count(n)', null, null, 'server1'); | |
// Query DB 2 | |
$result2 = $this->client->run('MATCH (n) RETURN count(n)', null, null, 'server2'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment