Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Yancharuk committed Nov 4, 2020
2 parents 2255bbc + 24eb461 commit 7d3c9db
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions src/ClickHouseConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,14 @@ public function __construct(
string $password,
AbstractPlatform $platform
) {
$this->smi2CHClient = new Smi2CHClient(
[
'host' => $params['host'] ?? 'localhost',
'port' => $params['port'] ?? 8123,
'username' => $username,
'password' => $password,
],
array_merge([
'database' => $params['dbname'] ?? 'default',
], $params['driverOptions'] ?? [])
);

$this->smi2CHClient = new Smi2CHClient([
'host' => $params['host'] ?? 'localhost',
'port' => $params['port'] ?? 8123,
'username' => $username,
'password' => $password,
], array_merge([
'database' => $params['dbname'] ?? 'default',
], $params['driverOptions'] ?? []));
$this->platform = $platform;
}

Expand Down

0 comments on commit 7d3c9db

Please sign in to comment.