public class MySQLConnection
extends io.debezium.jdbc.JdbcConnection
io.debezium.jdbc.JdbcConnection.ConnectionFactory, io.debezium.jdbc.JdbcConnection.Operations, io.debezium.jdbc.JdbcConnection.ResultSetConsumer, io.debezium.jdbc.JdbcConnection.SingleParameterResultSetConsumer, io.debezium.jdbc.JdbcConnection.StatementFactory, io.debezium.jdbc.JdbcConnection.StatementPreparer| Modifier and Type | Field and Description |
|---|---|
protected static io.debezium.jdbc.JdbcConnection.ConnectionFactory |
FACTORY |
| Constructor and Description |
|---|
MySQLConnection(Configuration config)
Create a new instance with the given configuration and connection factory.
|
MySQLConnection(Configuration config,
io.debezium.jdbc.JdbcConnection.Operations initialOperations)
Create a new instance with the given configuration and connection factory, and specify the operations that should be
run against each newly-established connection.
|
| Modifier and Type | Method and Description |
|---|---|
protected static void |
addDefaults(Configuration.Builder builder) |
static MySQLConnection |
forTestDatabase(String databaseName)
Obtain a connection instance to the named test database.
|
static MySQLConnection |
forTestDatabase(String databaseName,
String username,
String password)
Obtain a connection instance to the named test database.
|
close, columnsFor, columnsFor, config, connect, connection, connectionString, execute, execute, isConnected, patternBasedFactory, prepareQuery, prepareQuery, prepareQuery, print, print, query, query, readAllCatalogNames, readAllTableNames, readSchema, readTableNames, setAutoCommit, tableTypes, usernamepublic MySQLConnection(Configuration config)
config - the configuration; may not be nullpublic MySQLConnection(Configuration config, io.debezium.jdbc.JdbcConnection.Operations initialOperations)
config - the configuration; may not be nullinitialOperations - the initial operations that should be run on each new connection; may be nullpublic static MySQLConnection forTestDatabase(String databaseName)
databaseName - the name of the test databasepublic static MySQLConnection forTestDatabase(String databaseName, String username, String password)
databaseName - the name of the test databaseusername - the usernamepassword - the passwordprotected static void addDefaults(Configuration.Builder builder)
Copyright © 2016 JBoss by Red Hat. All rights reserved.