Class SqlDatabaseClient
- java.lang.Object
-
- io.debezium.testing.system.tools.databases.SqlDatabaseClient
-
- All Implemented Interfaces:
DatabaseClient<Connection,SQLException>
public class SqlDatabaseClient extends Object implements DatabaseClient<Connection,SQLException>
- Author:
- Jakub Cechacek
-
-
Constructor Summary
Constructors Constructor Description SqlDatabaseClient(String url, String username, String password)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Connectionconnect()ConnectionconnectWithRetries()private booleandoExecute(Commands<Connection,SQLException> commands)voidexecute(Commands<Connection,SQLException> commands)voidexecute(String command)voidexecute(String database, Commands<Connection,SQLException> commands)voidexecute(String database, String command)
-
-
-
Method Detail
-
doExecute
private boolean doExecute(Commands<Connection,SQLException> commands) throws SQLException
- Throws:
SQLException
-
execute
public void execute(Commands<Connection,SQLException> commands) throws SQLException
- Specified by:
executein interfaceDatabaseClient<Connection,SQLException>- Throws:
SQLException
-
execute
public void execute(String database, Commands<Connection,SQLException> commands) throws SQLException
- Throws:
SQLException
-
execute
public void execute(String database, String command) throws SQLException
- Throws:
SQLException
-
execute
public void execute(String command) throws SQLException
- Throws:
SQLException
-
connect
public Connection connect() throws SQLException
- Throws:
SQLException
-
connectWithRetries
public Connection connectWithRetries()
-
-