# Class: SQLClient

## vertx-sql-js/sql_client~ SQLClient

#### new SQLClient()

A common asynchronous client interface for interacting with SQL compliant database

Source:
  - vertx-sql-js/sql_client.js, line 30

### Methods

#### close(completionHandler)

Close the client and release all resources. Call the handler when close is complete.

##### Parameters:

Name | Type | Description
--- | --- | ---
`completionHandler` | function | the handler that will be called when close is complete

Source:
  - vertx-sql-js/sql_client.js, line 64

#### getConnection(handler) → {SQLClient}

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:

Name | Type | Description
--- | --- | ---
`handler` | function | the handler which is called when the `JdbcConnection` object is ready for use.

Source:
  - vertx-sql-js/sql_client.js, line 43

##### Returns:

Type
  SQLClient