io.vertx.sqlclient.spi

## Interface ConnectionFactory

- All Superinterfaces:
    Closeable

      public interface ConnectionFactory
      extends Closeable

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

- - ### Method Summary

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

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

      `close`

- - ### Method Detail

    - #### connect

          default Future<SqlConnection> connect(Context context,
                                                Future<? extends SqlConnectOptions> fut)

    - #### connect

          Future<SqlConnection> connect(Context context)

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

    - #### connect

          Future<SqlConnection> connect(Context context,
                                        SqlConnectOptions options)

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

Copyright © 2024 Eclipse. All rights reserved.