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

# queryWithParamsAwait

`suspend fun SQLOperations.queryWithParamsAwait(sql: String, params: JsonArray): ResultSet`

Executes the given SQL SELECT prepared statement which returns the results of the query.

### Parameters

`sql` - the SQL to execute. For example SELECT * FROM table ....

`params` - these are the parameters to fill the statement.

`resultHandler` - the handler which is called once the operation completes. It will return a ResultSet.

Return