Class ConnectionFactoryHandler

java.lang.Object
io.micronaut.test.support.sql.ConnectionFactoryHandler
All Implemented Interfaces:
SqlHandler<io.r2dbc.spi.ConnectionFactory>

@Singleton @Internal @Requires(classes=io.r2dbc.spi.ConnectionFactory.class) public class ConnectionFactoryHandler extends Object implements SqlHandler<io.r2dbc.spi.ConnectionFactory>
Handler for r2dbc ConnectionFactory instances.
Since:
4.1.0
Author:
Tim Yates
  • Constructor Details

    • ConnectionFactoryHandler

      public ConnectionFactoryHandler()
  • Method Details

    • handle

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