Setting Up a ClickHouse Connection
This section describes the sample code for creating a ClickHouse connection.
The following code snippets are provided in the initConnection method of the ClickhouseJDBCHaDemo class.
clickHouseProperties.setPassword(userPass); clickHouseProperties.setUser(userName); BalancedClickhouseDataSource balancedClickhouseDataSource = new BalancedClickhouseDataSource(JDBC_PREFIX + UriList, clickHouseProperties);
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.