Skip to main content

Limit and offset

Limit

val firstByName = ShopTable
.orderBy(ShopTable.name)
.limit(1)
.perform(db)

Offset

val thirdByName = ShopTable
.orderBy(ShopTable.name)
.offset(2)
.limit(1)
.perform(db)

Offset without limit

ShopTable
.orderBy(ShopTable.name)
.offset(2)
.perform(db)