hackerham
12/22/2016, 12:40 PMsuspend fun SQLConnection.update(sql: String, params: List<Any>) = suspendCoroutine<UpdateResult> {
cont ->
logger.debug("executing update $sql with params $params");
updateWithParams(sql, JsonArray(params), { it.sendToContinuation(cont) })
}