# Class: AsyncSqlService

## vertx-mysql-postgresql-js/async_sql_service~ AsyncSqlService

#### new AsyncSqlService()

Represents an asynchronous MySQL or PostgreSQL service.

Source:
  - vertx-mysql-postgresql-js/async_sql_service.js, line 31

### Methods

#### 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/async_sql_service.js, line 81

#### start(whenDone)

Called to start the service

##### Parameters:

Name | Type | Description
--- | --- | ---
`whenDone` | function |

Source:
  - vertx-mysql-postgresql-js/async_sql_service.js, line 42

#### stop(whenDone)

Called to stop the service

##### Parameters:

Name | Type | Description
--- | --- | ---
`whenDone` | function |

Source:
  - vertx-mysql-postgresql-js/async_sql_service.js, line 61