vertx-kuickstart-core / dev.fuelyour.vertxkuickstartcore.tools / DatabaseAccess / getConnection

getConnection

suspend fun <T : Any> getConnection(dbAction: suspend (SqlClient) -> T?): T

Get a connection to the database.

Parameters

dbAction - code block in which a connection to the database is available