new JdbcService()
A JDBC service allows you to interact with a JDBC compatible database using an asynchronous API.
- Source:
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 handlerfunction the handler which is called when the JdbcConnectionobject is ready for use.- Source:
-
start()
-
Start the service
- Source:
-
stop()
-
Stop the service
- Source: