Class SqlDatabaseClient
java.lang.Object
io.debezium.testing.system.tools.databases.SqlDatabaseClient
- All Implemented Interfaces:
DatabaseClient<Connection,SQLException>
- Author:
- Jakub Cechacek
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconnect()private booleandoExecute(Commands<Connection, SQLException> commands) voidexecute(Commands<Connection, SQLException> commands) voidvoidexecute(String database, Commands<Connection, SQLException> commands) void<T> TexecuteQuery(String database, String command, Function<ResultSet, T> resultSetProcessor)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
url
-
username
-
password
-
-
Constructor Details
-
SqlDatabaseClient
-
-
Method Details
-
doExecute
- Throws:
SQLException
-
execute
- Specified by:
executein interfaceDatabaseClient<Connection,SQLException> - Throws:
SQLException
-
execute
public void execute(String database, Commands<Connection, SQLException> commands) throws SQLException- Throws:
SQLException
-
execute
- Throws:
SQLException
-
execute
- Throws:
SQLException
-
executeQuery
public <T> T executeQuery(String database, String command, Function<ResultSet, T> resultSetProcessor) throws SQLException- Throws:
SQLException
-
connect
- Throws:
SQLException
-
connectWithRetries
-