executeAndCheck

fun Query.executeAndCheck(affectedRows: Int = 1)

Checks that execution affects expected number of rows.