io.vertx.ext.sql

## Interface SQLClient

- All Known Subinterfaces:
    AsyncSQLClient, JDBCClient, MySQLClient, PostgreSQLClient

      public interface SQLClient

  A common asynchronous client interface for interacting with SQL compliant database
  Author:
    Emad Alblueshi

- - ### Method Summary

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

- - ### Method Detail

    - #### getConnection

          SQLClient 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.

    - #### close

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

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

    - #### close

          void close()

      Close the client

Copyright © 2017. All rights reserved.