public class MySqlConnectionUtils extends Object
| 构造器和说明 |
|---|
MySqlConnectionUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static com.github.shyiko.mysql.binlog.BinaryLogClient |
createBinaryClient(io.debezium.config.Configuration dbzConfiguration)
Creates a new
BinaryLogClient for consuming mysql binlog. |
static io.debezium.connector.mysql.MySqlConnection |
createMySqlConnection(io.debezium.config.Configuration dbzConfiguration)
Creates a new
MySqlConnection, but not open the connection. |
static io.debezium.connector.mysql.MySqlDatabaseSchema |
createMySqlDatabaseSchema(io.debezium.connector.mysql.MySqlConnectorConfig dbzMySqlConfig,
boolean isTableIdCaseSensitive)
Creates a new
MySqlDatabaseSchema to monitor the latest MySql database schemas. |
static BinlogOffset |
currentBinlogOffset(io.debezium.jdbc.JdbcConnection jdbc)
Fetch current binlog offsets in MySql Server.
|
static BinlogOffset |
earliestBinlogOffset(io.debezium.jdbc.JdbcConnection jdbc)
Fetch earliest binlog offsets in MySql Server.
|
static boolean |
isTableIdCaseSensitive(io.debezium.jdbc.JdbcConnection connection) |
static Map<String,String> |
readMySqlSystemVariables(io.debezium.jdbc.JdbcConnection connection) |
public static io.debezium.connector.mysql.MySqlConnection createMySqlConnection(io.debezium.config.Configuration dbzConfiguration)
MySqlConnection, but not open the connection.public static com.github.shyiko.mysql.binlog.BinaryLogClient createBinaryClient(io.debezium.config.Configuration dbzConfiguration)
BinaryLogClient for consuming mysql binlog.public static io.debezium.connector.mysql.MySqlDatabaseSchema createMySqlDatabaseSchema(io.debezium.connector.mysql.MySqlConnectorConfig dbzMySqlConfig,
boolean isTableIdCaseSensitive)
MySqlDatabaseSchema to monitor the latest MySql database schemas.public static BinlogOffset earliestBinlogOffset(io.debezium.jdbc.JdbcConnection jdbc)
public static BinlogOffset currentBinlogOffset(io.debezium.jdbc.JdbcConnection jdbc)
public static boolean isTableIdCaseSensitive(io.debezium.jdbc.JdbcConnection connection)
Copyright © 2023 The Apache Software Foundation. All rights reserved.