Package io.debezium.connector.mysql.jdbc
Class MySqlConnection
java.lang.Object
io.debezium.jdbc.JdbcConnection
io.debezium.connector.binlog.jdbc.BinlogConnectorConnection
io.debezium.connector.mysql.jdbc.MySqlConnection
- All Implemented Interfaces:
AutoCloseable
An
BinlogConnectorConnection
to be used with MySQL.- Author:
- Jiri Pechanec, Randell Hauch, Chris Cranford
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
Helper to gain access to protected methodNested classes/interfaces inherited from class io.debezium.connector.binlog.jdbc.BinlogConnectorConnection
BinlogConnectorConnection.DatabaseLocales
Nested classes/interfaces inherited from class io.debezium.jdbc.JdbcConnection
JdbcConnection.BlockingMultiResultSetConsumer, JdbcConnection.BlockingResultSetConsumer, JdbcConnection.CallPreparer, JdbcConnection.ConnectionFactory, JdbcConnection.MultiResultSetConsumer, JdbcConnection.Operations, JdbcConnection.ParameterResultSetConsumer, JdbcConnection.ResultSetConsumer, JdbcConnection.ResultSetExtractor<T extends Object>, JdbcConnection.ResultSetMapper<T extends Object>, JdbcConnection.StatementFactory, JdbcConnection.StatementPreparer
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMySqlConnection
(MySqlConnectionConfiguration connectionConfig, BinlogFieldReader fieldReader) -
Method Summary
Modifier and TypeMethodDescriptionfilterGtidSet
(Predicate<String> gtidSourceFilter, String offsetGtids, GtidSet availableServerGtidSet, GtidSet purgedServerGtidSet) static String
getJavaEncodingForCharSet
(String charSetName) boolean
subtractGtidSet
(GtidSet set1, GtidSet set2) Methods inherited from class io.debezium.connector.binlog.jdbc.BinlogConnectorConnection
availableBinlogFiles, availableDatabases, connectionConfig, connectionString, earliestBinlogFilename, getColumnValue, getEstimatedTableSize, getQualifiedTableName, getSessionVariableForSslVersion, isBinlogFormatRow, isBinlogPositionAvailable, isBinlogRowImageFull, isTableIdCaseSensitive, nullsSortLast, quotedTableIdString, readCharsetSystemVariables, readDatabaseCollations, readSystemVariables, setStatementFor, userHasPrivileges, validateLogPosition
Methods inherited from class io.debezium.jdbc.JdbcConnection
buildSelectWithRowLimits, call, chunkQueryBuilder, close, commit, config, connect, connection, connection, connectionString, createTableId, database, escapeEscapeSequence, execute, execute, executeWithoutCommitting, getAttributeDetails, getColumnsDetails, getCurrentTimestamp, isConnected, isNullable, isTableType, isTableUniqueIndexIncluded, isValid, loadKeyStore, overrideColumn, parseSqlStatementString, patternBasedFactory, patternBasedFactory, prepareQuery, prepareQuery, prepareQuery, prepareQuery, prepareQuery, prepareQueryAndMap, prepareQueryWithBlockingConsumer, prepareUpdate, print, print, query, query, queryAndMap, queryAndMap, querySingleValue, queryWithBlockingConsumer, quotedColumnIdString, readAllCatalogNames, readAllSchemaNames, readAllTableNames, readPrimaryKeyNames, readPrimaryKeyOrUniqueIndexNames, readSchema, readTableColumn, readTableNames, readTablePreparedStatement, readTableStatement, readTableUniqueIndices, reselectColumns, reselectColumns, resolveCatalogName, resolveJdbcType, resolveNativeType, rollback, rowToArray, setAutoCommit, setQueryColumnValue, singleResultMapper, supportedTableTypes, tableTypes, username
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
MySqlConnection
public MySqlConnection(MySqlConnectionConfiguration connectionConfig, BinlogFieldReader fieldReader)
-
-
Method Details
-
isGtidModeEnabled
public boolean isGtidModeEnabled()- Specified by:
isGtidModeEnabled
in classBinlogConnectorConnection
-
knownGtidSet
- Specified by:
knownGtidSet
in classBinlogConnectorConnection
-
subtractGtidSet
- Specified by:
subtractGtidSet
in classBinlogConnectorConnection
-
purgedGtidSet
- Specified by:
purgedGtidSet
in classBinlogConnectorConnection
-
filterGtidSet
public GtidSet filterGtidSet(Predicate<String> gtidSourceFilter, String offsetGtids, GtidSet availableServerGtidSet, GtidSet purgedServerGtidSet) - Specified by:
filterGtidSet
in classBinlogConnectorConnection
-
getJavaEncodingForCharSet
-