
com.lightningkite.lightningdb.Query.kt Maven / Gradle / Ivy
@file:SharedCode
package com.lightningkite.lightningdb
import com.lightningkite.khrysalis.IsCodableAndHashable
import com.lightningkite.khrysalis.SharedCode
import kotlinx.serialization.Serializable
@Serializable
data class Query(
val condition: Condition = Condition.Always(),
val orderBy: List> = listOf(),
val skip: Int = 0,
val limit: Int = 100,
) {
constructor(
orderBy: List> = listOf(),
skip: Int = 0,
limit: Int = 100,
makeCondition: (DataClassPath)->Condition,
):this(makeCondition(path()), orderBy, skip, limit)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy