# Class: MySQLClient

## vertx-mysql-postgresql-js/my_sql_client~ MySQLClient

#### new MySQLClient()

Represents an asynchronous MySQL client

Source:
  - vertx-mysql-postgresql-js/my_sql_client.js, line 32

### Methods

#### close(whenDone)

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

##### Parameters:

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

Source:
  - vertx-mysql-postgresql-js/my_sql_client.js, line 45

#### getConnection(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:

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

Source:
  - vertx-mysql-postgresql-js/my_sql_client.js, line 67