Class ChJdbcConnector
java.lang.Object
org.pgcodekeeper.core.database.base.jdbc.AbstractJdbcConnector
org.pgcodekeeper.core.database.ch.jdbc.ChJdbcConnector
- All Implemented Interfaces:
IJdbcConnector
JDBC database connector implementation for ClickHouse.
-
Constructor Summary
ConstructorsConstructorDescriptionChJdbcConnector(String url) ChJdbcConnector(String host, int port, String dbName) -
Method Summary
Modifier and TypeMethodDescriptionReturns batch delimiter.Creates a new database connection using the parameters specified in the constructor.Methods inherited from class org.pgcodekeeper.core.database.base.jdbc.AbstractJdbcConnector
getDbName, getUrl
-
Constructor Details
-
ChJdbcConnector
- Parameters:
url- full jdbc connection string
-
ChJdbcConnector
-
-
Method Details
-
getConnection
Description copied from interface:IJdbcConnectorCreates a new database connection using the parameters specified in the constructor. The caller is responsible for closing the connection.- Specified by:
getConnectionin interfaceIJdbcConnector- Overrides:
getConnectionin classAbstractJdbcConnector- Returns:
- new database connection
- Throws:
IOException- if the driver is not found or a database access error occurs
-
getBatchDelimiter
Description copied from interface:IJdbcConnectorReturns batch delimiter. If the value is null, each statement will be executed separately in autocommit mode.- Returns:
- batch delimiter
-