phpClickHouse icon indicating copy to clipboard operation
phpClickHouse copied to clipboard

readonly flag doesn't work with insert()

Open peter-nitropack opened this issue 1 year ago • 2 comments

Setting the readonly flag when initializing the db connection does not stop inserting:

...
$config['readonly'] = true;
$clickHouse = new ClickHouseDB\Client($config);
$clickHouse->database($config['name']);
$clickHouse->setTimeout(10);
$clickHouse->setConnectTimeOut(5);
$clickHouse->ping(true);

$clickHouse->insert($table, $entries, $columns); // this is not supposed to work but it does

peter-nitropack avatar Feb 01 '24 15:02 peter-nitropack

@isublimity @simPod Any news on this? Excuse me for tagging you directly, I see you are major contributors to the project :)

peter-nitropack avatar Feb 12 '24 13:02 peter-nitropack

I'm not a maintainer here and I abandoned the project because of issues like this. You can use https://packagist.org/packages/simpod/clickhouse-client, there are no hidden dragons.

simPod avatar Feb 12 '24 19:02 simPod