Package io.micronaut.test.support.sql
Class DelegatingDataSourceSqlHandler
java.lang.Object
io.micronaut.test.support.sql.DataSourceSqlHandler
io.micronaut.test.support.sql.DelegatingDataSourceSqlHandler
- All Implemented Interfaces:
SqlHandler<DataSource>
@Singleton
@Internal
@Requires(classes={io.micronaut.data.connection.jdbc.advice.DelegatingDataSource.class,javax.sql.DataSource.class})
@Replaces(DataSourceSqlHandler.class)
public class DelegatingDataSourceSqlHandler
extends DataSourceSqlHandler
Handler for
DataSource
instances which may be a DelegatingDataSource
.- 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
-
DelegatingDataSourceSqlHandler
public DelegatingDataSourceSqlHandler()
-
-
Method Details
-
handle
Description copied from interface:SqlHandler
Given a data source and SQL, execute the SQL.- Specified by:
handle
in interfaceSqlHandler<DataSource>
- Overrides:
handle
in classDataSourceSqlHandler
- Parameters:
dataSource
- The data sourcesql
- The SQL to execute
-