Package io.vertx.sqlclient.spi

## Interface ConnectionFactory<C extends SqlConnectOptions>

- All Superinterfaces:
    `Closeable`

      public interface ConnectionFactory<C extends SqlConnectOptions>
      extends Closeable

  A connection factory, can be obtained from `Driver.createConnectionFactory(io.vertx.core.Vertx, io.vertx.core.net.NetClientOptions)`

- - ### Method Summary

    All Methods Instance Methods Abstract Methods Default Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `Future<SqlConnection>` | `connect​(Context context, C options)` | Create a connection using the given `context`.
    `default Future<SqlConnection>` | `connect​(Context context, Future<C> fut)` |

    - ### Methods inherited from interface io.vertx.core.Closeable

      `close`

- - ### Method Detail

    - #### connect

          default Future<SqlConnection> connect​(Context context,
                                                Future<C> fut)

    - #### connect

          Future<SqlConnection> connect​(Context context,
                                        C options)

      Create a connection using the given `context`.
      Parameters:
        `context` - the context
      Returns:
        the future connection