From 430cd28ca5088f5c9cdc22807c684033af1f1acd Mon Sep 17 00:00:00 2001 From: Aleksandr Riabov Date: Mon, 26 Sep 2022 09:40:35 +0300 Subject: [PATCH] Added `clientSettings` attribute --- Connection.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Connection.php b/Connection.php index ee16a5e..df3526e 100644 --- a/Connection.php +++ b/Connection.php @@ -31,6 +31,13 @@ class Connection extends \yii\db\Connection */ public $clientOptions = []; + /** + * Settings of the clickhouse client + * + * @var array + */ + public $clientSettings = []; + /** * @var Client */ @@ -70,7 +77,7 @@ public function open() ], $this->clientOptions), array_merge([ 'database' => $config['database'] ?? 'default', - ], $this->attributes ?? []) + ], $this->attributes ?? [], $this->clientSettings) ); } }