vertx / io.vertx.kotlin.ext.jdbc / io.vertx.ext.jdbc.JDBCClient

Extensions for io.vertx.ext.jdbc.JDBCClient

querySingleAwait

suspend fun JDBCClient.querySingleAwait(sql: String): JsonArray?

Execute a one shot SQL statement that returns a single SQL row. This method will reduce the boilerplate code by getting a connection from the pool (this object) and return it back after the execution. Only the first result from the result set is returned.

querySingleWithParamsAwait

suspend fun JDBCClient.querySingleWithParamsAwait(sql: String, arguments: JsonArray): JsonArray?

Execute a one shot SQL statement with arguments that returns a single SQL row. This method will reduce the boilerplate code by getting a connection from the pool (this object) and return it back after the execution. Only the first result from the result set is returned.