mongodb / de.comhix.database.dao / Query

Query

open class Query<Type>

Author
Benjamin Beeker

Types

Operation

class Operation<AllowedValueType>

Constructors

<init>

only for de.comhix.database.dao.test.MockQuery

Query()Query(typeClass: Class<Type>, datastore: Datastore)

Functions

find

open suspend fun find(): Type?

limit

open fun limit(limit: Int): Query<Type>

order

open fun order(field: KProperty<Any>): Query<Type>
open fun order(field: String): Query<Type>

query

open suspend fun query(): QueryResult<Type>

skip

open fun skip(skip: Int): Query<Type>

with

open fun <AllowedValueType> with(field: KProperty<Any?>, operation: Operation<AllowedValueType>, value: AllowedValueType): Query<Type>
open fun <AllowedValueType> with(field: String, operation: Operation<AllowedValueType>, value: AllowedValueType): Query<Type>

Inheritors

MockQuery

open class MockQuery<Type> : Query<Type>