Class ChJdbcConnector

java.lang.Object
org.pgcodekeeper.core.database.base.jdbc.AbstractJdbcConnector
org.pgcodekeeper.core.database.ch.jdbc.ChJdbcConnector
All Implemented Interfaces:
IJdbcConnector

public class ChJdbcConnector extends AbstractJdbcConnector
JDBC database connector implementation for ClickHouse.
  • Constructor Details

    • ChJdbcConnector

      public ChJdbcConnector(String url)
      Parameters:
      url - full jdbc connection string
    • ChJdbcConnector

      public ChJdbcConnector(String host, int port, String dbName)
  • Method Details

    • getConnection

      public Connection getConnection() throws IOException
      Description copied from interface: IJdbcConnector
      Creates a new database connection using the parameters specified in the constructor. The caller is responsible for closing the connection.
      Specified by:
      getConnection in interface IJdbcConnector
      Overrides:
      getConnection in class AbstractJdbcConnector
      Returns:
      new database connection
      Throws:
      IOException - if the driver is not found or a database access error occurs
    • getBatchDelimiter

      public String getBatchDelimiter()
      Description copied from interface: IJdbcConnector
      Returns batch delimiter. If the value is null, each statement will be executed separately in autocommit mode.
      Returns:
      batch delimiter