io.vertx.mysqlclient.spi

## Class MySQLDriver

- java.lang.Object
- - io.vertx.mysqlclient.spi.MySQLDriver

- All Implemented Interfaces:
    Driver

      public class MySQLDriver
      extends Object
      implements Driver

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static MySQLDriver` | `INSTANCE`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `MySQLDriver()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `acceptsOptions(SqlConnectOptions options)`
    `ConnectionFactory` | `createConnectionFactory(Vertx vertx, SqlConnectOptions database)` Create a connection factory to the given `database`.
    `ConnectionFactory` | `createConnectionFactory(Vertx vertx, java.util.function.Supplier<? extends Future<? extends SqlConnectOptions>> database)` Create a connection factory to the given `database`.
    `Pool` | `newPool(Vertx vertx, java.util.function.Supplier<? extends Future<? extends SqlConnectOptions>> databases, PoolOptions options, io.vertx.core.impl.CloseFuture closeFuture)` Create a connection pool to the database configured with the given `connectOptions` and `poolOptions`.
    `MySQLConnectOptions` | `parseConnectionUri(String uri)`
    `io.vertx.sqlclient.impl.SqlConnectionInternal` | `wrapConnection(io.vertx.core.impl.ContextInternal context, ConnectionFactory factory, io.vertx.sqlclient.impl.Connection conn)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface io.vertx.sqlclient.spi.Driver

      `appendQueryPlaceholder, createPool, createPool, newPool`

- - ### Field Detail

    - #### INSTANCE

          public static final MySQLDriver INSTANCE

  - ### Constructor Detail

    - #### MySQLDriver

          public MySQLDriver()

  - ### Method Detail

    - #### newPool

          public Pool newPool(Vertx vertx,
                              java.util.function.Supplier<? extends Future<? extends SqlConnectOptions>> databases,
                              PoolOptions options,
                              io.vertx.core.impl.CloseFuture closeFuture)

      Description copied from interface: `Driver`
      Create a connection pool to the database configured with the given `connectOptions` and `poolOptions`. This method is not meant to be used directly by users, instead they should use `Driver.createPool(Vertx, List, PoolOptions)`.
      Specified by:
        `newPool` in interface `Driver`
      Parameters:
        `vertx` - the Vertx instance to be used with the connection pool
        `databases` - the list of databases
        `options` - the options for creating the pool
        `closeFuture` - the close future
      Returns:
        the connection pool

    - #### parseConnectionUri

          public MySQLConnectOptions parseConnectionUri(String uri)

      Specified by:
        `parseConnectionUri` in interface `Driver`
      Returns:
        `true` if the driver accepts the `connectOptions`, `false` otherwise

    - #### acceptsOptions

          public boolean acceptsOptions(SqlConnectOptions options)

      Specified by:
        `acceptsOptions` in interface `Driver`
      Returns:
        true if the driver accepts the `connectOptions`, false otherwise

    - #### createConnectionFactory

          public ConnectionFactory createConnectionFactory(Vertx vertx,
                                                           SqlConnectOptions database)

      Description copied from interface: `Driver`
      Create a connection factory to the given `database`.
      Specified by:
        `createConnectionFactory` in interface `Driver`
      Parameters:
        `vertx` - the Vertx instance t
        `database` - the database to connect to
      Returns:
        the connection factory

    - #### createConnectionFactory

          public ConnectionFactory createConnectionFactory(Vertx vertx,
                                                           java.util.function.Supplier<? extends Future<? extends SqlConnectOptions>> database)

      Description copied from interface: `Driver`
      Create a connection factory to the given `database`.
      Specified by:
        `createConnectionFactory` in interface `Driver`
      Parameters:
        `vertx` - the Vertx instance t
        `database` - the database to connect to
      Returns:
        the connection factory

    - #### wrapConnection

          public io.vertx.sqlclient.impl.SqlConnectionInternal wrapConnection(io.vertx.core.impl.ContextInternal context,
                                                                              ConnectionFactory factory,
                                                                              io.vertx.sqlclient.impl.Connection conn)

      Specified by:
        `wrapConnection` in interface `Driver`

Copyright © 2023 Eclipse. All rights reserved.