smi2 / phpClickHouse

php ClickHouse wrapper
MIT License
750 stars 139 forks source link

Add client certificate support to able to work with Yandex ClickHouse cloud hosting #129

Closed vovantune closed 4 years ago

vovantune commented 4 years ago

Usage:

$config = [
    'host' => 'XXXX.mdb.yandexcloud.net,
    'port' => '8443',
    'username' => 'user',
    'password' => 'pwd',
    'https' => true,
    'sslCA' => '/path/to/certificate.pem',
];
$db = new ClickHouseDB\Client($config);
isublimity commented 4 years ago

Thx!