main.app.cash.backfila.client.jooq.CompoundKeyComparisonOperator.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of client-jooq Show documentation
Show all versions of client-jooq Show documentation
Backfila is a service that manages backfill state, calling into other services to do batched work.
package app.cash.backfila.client.jooq
import org.jooq.Condition
import org.jooq.Record
/**
* A function that builds a jooq condition using a {@link CompoundKeyComparer} and a jooq
* {@link Record} (which represents the compound key value). Usually specified using a method
* reference such as `CompoundKeyComparer::gt` or `CompoundKeyComparer::gte`.
*/
typealias CompoundKeyComparisonOperator = (
comparer: CompoundKeyComparer,
record: Record,
) -> Condition