https://kotlinlang.org logo
#exposed
Title
# exposed
t

tapac

09/05/2016, 12:09 PM
count(*) is the same as count on any column from that table (if you don't use group by), so you can use something like:
Copy code
val countCol = table.columns.first().count()
val count = table.slice(countCol).selectAll().single()[countCol]
Also you can write custom ext.function:
Copy code
fun Table.count() = columns.first().count()