class DittoLiveQuery<T : Any> : LiveQueryHandlerRust, Closeable
The type that is returned when calling observe
on a DittoCollection object. It handles the logic for
calling the event handler that is provided to the observe
call.
val collectionName: String
the name of the collection that the live query is based on. |
|
var id: Int |
|
val limit: Int
the maximum number of documents that will be returned as part of any one invocation of the closure provided. |
|
val offset: Int
the number of documents to offset the query results by. |
|
val query: String
the query that the live query is based on. |
fun close(): Unit |
|
fun eventHandler(documents: SWIGTYPE_p_p_Ditto_Document?, document_count: Long, is_initial: Boolean, old_documents: SWIGTYPE_p_p_Ditto_Document?, old_document_count: Long, insertions: SWIGTYPE_p_uintptr_t?, insertion_count: Long, deletions: SWIGTYPE_p_uintptr_t?, deletion_count: Long, updates: SWIGTYPE_p_uintptr_t?, update_count: Long, moves: SWIGTYPE_p_uintptr_t?, move_count: Long): Unit |