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 Details

    • DataSourceSqlHandler

      public DataSourceSqlHandler()
  • Method Details

    • handle

      public void handle(@NonNull @NonNull DataSource dataSource, @NonNull @NonNull String sql)
      Description copied from interface: SqlHandler
      Given a data source and SQL, execute the SQL.
      Specified by:
      handle in interface SqlHandler<DataSource>
      Parameters:
      dataSource - The data source
      sql - The SQL to execute