You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
352 B

from clickhouse_driver import Client
class ClickHouseConnector:
def __init__(self, config):
self.config = config
self.client = None
def connect(self):
self.client = Client(**self.config)
return self.client
def disconnect(self):
if self.client:
self.client.disconnect()