SingleQueryDsl

Represents a DSL for constructing a single query. This class extends QueryableDsl and is specifically designed to build instances of ISingleQuery. It allows for the fluent and type-safe construction of queries, including setting up projections, conditions, and sorting.

Example usage:

val query = singleQuery {
condition {
"name" eq "John Doe"
}
projection {
include("id", "name")
}
sort {
"name".asc()
"age".desc()
}
}

See also

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun build(): ISingleQuery
Link copied to clipboard
fun condition(block: ConditionDsl.() -> Unit)
fun condition(condition: Condition)
Link copied to clipboard
fun projection(block: ProjectionDsl.() -> Unit)
fun projection(projection: Projection)
Link copied to clipboard
fun sort(block: SortDsl.() -> Unit)
fun sort(sort: List<Sort>)