Class JdbcSchemaHistoryConfig

java.lang.Object
io.debezium.storage.jdbc.JdbcCommonConfig
io.debezium.storage.jdbc.history.JdbcSchemaHistoryConfig

public class JdbcSchemaHistoryConfig extends JdbcCommonConfig
Configuration options specific for JDBC schema history storage.
Author:
Jiri Pechanec
  • Field Details

    • DEFAULT_TABLE_NAME

      private static final String DEFAULT_TABLE_NAME
      See Also:
    • PROP_TABLE_NAME

      public static final Field PROP_TABLE_NAME
    • DEFAULT_TABLE_DDL

      private static final String DEFAULT_TABLE_DDL
      Table that will store database history. id - Unique identifier(UUID) history_data - Schema history data. history_data_seq - Schema history part sequence number. record_insert_ts - Timestamp when the record was inserted record_insert_seq - Sequence number(Incremented for every record inserted)
      See Also:
    • PROP_TABLE_DDL

      public static final Field PROP_TABLE_DDL
      Field that will store the CREATE TABLE DDL for schema history.
    • DEFAULT_TABLE_SELECT

      private static final String DEFAULT_TABLE_SELECT
      See Also:
    • PROP_TABLE_SELECT

      public static final Field PROP_TABLE_SELECT
      Field that will store the Schema history SELECT query.
    • DEFAULT_TABLE_DATA_EXISTS_SELECT

      private static final String DEFAULT_TABLE_DATA_EXISTS_SELECT
      See Also:
    • PROP_TABLE_DATA_EXISTS_SELECT

      public static final Field PROP_TABLE_DATA_EXISTS_SELECT
      Field that will store the Schema history SELECT query to check existence of the table.
    • DEFAULT_TABLE_DATA_INSERT

      private static final String DEFAULT_TABLE_DATA_INSERT
      See Also:
    • PROP_TABLE_DATA_INSERT

      public static final Field PROP_TABLE_DATA_INSERT
    • tableName

      private String tableName
    • tableCreate

      private String tableCreate
    • tableSelect

      private String tableSelect
    • tableDataExistsSelect

      private String tableDataExistsSelect
    • tableInsert

      private String tableInsert
    • databaseName

      private String databaseName
  • Constructor Details

    • JdbcSchemaHistoryConfig

      public JdbcSchemaHistoryConfig(Configuration config)
  • Method Details

    • init

      protected void init(Configuration config)
      Overrides:
      init in class JdbcCommonConfig
    • getAllConfigurationFields

      protected List<Field> getAllConfigurationFields()
      Overrides:
      getAllConfigurationFields in class JdbcCommonConfig
    • getTableName

      public String getTableName()
    • getDatabaseName

      public String getDatabaseName()
    • getTableCreate

      public String getTableCreate()
    • getTableSelect

      public String getTableSelect()
    • getTableDataExistsSelect

      public String getTableDataExistsSelect()
    • getTableInsert

      public String getTableInsert()
    • splitDatabaseAndTableName

      void splitDatabaseAndTableName(String databaseAndTableName)
      Function to split database and table name from the fully qualified table name.
      Parameters:
      databaseAndTableName - database and table name