vertx / io.vertx.kotlin.ext.sql / io.vertx.ext.sql.SQLOperations / querySingleAwait

querySingleAwait

suspend fun SQLOperations.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.

Parameters

sql - the statement to execute

handler - the result handler

Returnself