Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

readonly flag doesn't work with insert() #209

Open
peter-nitropack opened this issue Feb 1, 2024 · 2 comments
Open

readonly flag doesn't work with insert() #209

peter-nitropack opened this issue Feb 1, 2024 · 2 comments

Comments

@peter-nitropack
Copy link

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
Copy link
Author

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

@simPod
Copy link
Contributor

simPod commented Feb 12, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants