Class BinlogTestConnection

java.lang.Object
io.debezium.jdbc.JdbcConnection
io.debezium.connector.binlog.util.BinlogTestConnection
All Implemented Interfaces:
AutoCloseable

public abstract class BinlogTestConnection extends JdbcConnection
Author:
Chris Cranford
  • Constructor Details

  • Method Details

    • isTableIdCaseSensitive

      public boolean isTableIdCaseSensitive()
      Returns:
      true if table names are case-sensitive, false otherwise
    • getMySqlVersionString

      public String getMySqlVersionString()
    • isGtidEnabled

      public abstract boolean isGtidEnabled()
    • isMariaDb

      public abstract boolean isMariaDb()
      Returns whether the database is MariaDB.
      Returns:
      true if MariaDB, false otherwise.
    • isMySQL5

      public abstract boolean isMySQL5()
      Return whether the database is MySQL.
      Returns:
      true if is MySQL 5, false otherwise.
    • isPercona

      public abstract boolean isPercona()
      Returns whether the database is Percona.
      Returns:
      true if Percona, false otherwise.
    • currentDateTimeDefaultOptional

      public abstract String currentDateTimeDefaultOptional(String isoString)
      Get the current date time default value
      Parameters:
      isoString - the ISO string value
      Returns:
      the default value
    • setBinlogCompressionOff

      public abstract void setBinlogCompressionOff() throws SQLException
      Set the binlog compression off.
      Throws:
      SQLException - if a database exception occurs.
    • setBinlogCompressionOn

      public abstract void setBinlogCompressionOn() throws SQLException
      Set the binlog compression on.
      Throws:
      SQLException - if a database exception occurs.
    • setBinlogRowQueryEventsOff

      public abstract void setBinlogRowQueryEventsOff() throws SQLException
      Set the binlog row query events off.
      Throws:
      SQLException - if a database exception occurs.
    • setBinlogRowQueryEventsOn

      public abstract void setBinlogRowQueryEventsOn() throws SQLException
      Set the binlog row query events on.
      Throws:
      SQLException - if a database exception occurs.
    • isCurrentDateTimeDefaultGenerated

      public abstract boolean isCurrentDateTimeDefaultGenerated()
      Returns:
      whether the current date time defaults as generated
    • addDefaultSettings

      protected static JdbcConfiguration addDefaultSettings(JdbcConfiguration configuration)
    • getDefaultJdbcConfig

      protected static JdbcConfiguration.Builder getDefaultJdbcConfig(String databaseName)
    • getReplicaJdbcConfig

      protected static JdbcConfiguration.Builder getReplicaJdbcConfig(String databaseName)