Package io.micronaut.test.support.sql
Class DataSourceSqlHandler
java.lang.Object
io.micronaut.test.support.sql.DataSourceSqlHandler
- All Implemented Interfaces:
SqlHandler<DataSource>
- Direct Known Subclasses:
DelegatingDataSourceSqlHandler
@Singleton
@Internal
@Requires(classes=javax.sql.DataSource.class)
public class DataSourceSqlHandler
extends Object
implements SqlHandler<DataSource>
Handler for raw
DataSource
instances.- Since:
- 4.1.0
- Author:
- Tim Yates
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handle
(@NonNull DataSource dataSource, @NonNull String sql) Given a data source and SQL, execute the SQL.
-
Constructor Details
-
DataSourceSqlHandler
public DataSourceSqlHandler()
-
-
Method Details
-
handle
Description copied from interface:SqlHandler
Given a data source and SQL, execute the SQL.- Specified by:
handle
in interfaceSqlHandler<DataSource>
- Parameters:
dataSource
- The data sourcesql
- The SQL to execute
-