io.vertx.ext.asyncsql

## Interface AsyncSQLClient

- All Known Subinterfaces:
    MySQLClient, PostgreSQLClient

      public interface AsyncSQLClient

  Represents an asynchronous SQL client
  Author:
    Joern Bernhardt., Tim Fox

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `close()` Close the client and release all resources.
    `void` | `close(Handler<AsyncResult<Void>> whenDone)` Close the client and release all resources.
    `void` | `getConnection(Handler<AsyncResult<SQLConnection>> handler)` Returns a connection that can be used to perform SQL operations on.

- - ### Method Detail

    - #### close

          void close()

      Close the client and release all resources. Note that closing is asynchronous.

    - #### close

          void close(Handler<AsyncResult<Void>> whenDone)

      Close the client and release all resources. Call the handler when close is complete.
      Parameters:
        `whenDone` - handler that will be called when close is complete

    - #### getConnection

          void getConnection(Handler<AsyncResult<SQLConnection>> handler)

      Returns a connection that can be used to perform SQL operations on. It's important to remember to close the connection when you are done, so it is returned to the pool.
      Parameters:
        `handler` - the handler which is called when the `JdbcConnection` object is ready for use.

Copyright © 2017. All rights reserved.