You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When I created the client, I specified the use of the SSL protocol and certificate verification. However, the certificate can only pass the path but not the content. As a result, we need to store the plaintext certificate in the environment in advance, which is not allowed. If you pass the encryption certificate directly, there will be an interactive command line to enter the certificate password when executing the execute() method, which is unreasonable.
To Reproduce
client = Client(host=constant.MY_SQL_CONFIG.get("host"), port=constant.MY_SQL_CONFIG.get("port"),
database=constant.MY_SQL_CONFIG.get("database"), user=constant.MY_SQL_CONFIG.get("user"),
password=constant.MY_SQL_CONFIG.get("password"),secure=True,ca_certs=ca_file, keyfile=key_file, certfile=cert_file)
database_name = 'new_database'
client.execute(f"CREATE DATABASE IF NOT EXISTS {database_name}") Expected behavior
When creating the client, you can receive the parameter key_password of a private key password. There is no need to go to the command line to obtain it when executing the execute() method.
Versions
linux x86环境
clickhouse_driver : 0.2.6
python:3.11.4
The text was updated successfully, but these errors were encountered:
Describe the bug
When I created the client, I specified the use of the SSL protocol and certificate verification. However, the certificate can only pass the path but not the content. As a result, we need to store the plaintext certificate in the environment in advance, which is not allowed. If you pass the encryption certificate directly, there will be an interactive command line to enter the certificate password when executing the execute() method, which is unreasonable.
To Reproduce
client = Client(host=constant.MY_SQL_CONFIG.get("host"), port=constant.MY_SQL_CONFIG.get("port"),
database=constant.MY_SQL_CONFIG.get("database"), user=constant.MY_SQL_CONFIG.get("user"),
password=constant.MY_SQL_CONFIG.get("password"),secure=True,ca_certs=ca_file, keyfile=key_file, certfile=cert_file)
database_name = 'new_database'
client.execute(f"CREATE DATABASE IF NOT EXISTS {database_name}")
Expected behavior
When creating the client, you can receive the parameter key_password of a private key password. There is no need to go to the command line to obtain it when executing the execute() method.
Versions
linux x86环境
clickhouse_driver : 0.2.6
python:3.11.4
The text was updated successfully, but these errors were encountered: