Functions

Link copied to clipboard
open fun blockingDelete()

Removes the object in scope in a synchronous way. See the implementation JavaDoc for details on how deletion is performed. It blocks the thread and finishes as soon as the object is deleted in the database. It throws an exception if the object doesn't exist.

Link copied to clipboard

Removes the object in scope in a synchronous way. See the implementation JavaDoc for details on how deletion is performed. Unlike .blockingDelete, it doesn't throw an exception if the object doesn't exist. It blocks the thread and finishes as soon as the object is deleted in the database.

Link copied to clipboard

Returns if the object exists in a synchronous way. Important: this is a blocking method and it should not be executed in the main thread. Consider the asynchronous version .rxExists.

Link copied to clipboard
open fun blockingGet(): M?

Returns the object in a synchronous way. Important: this is a blocking method and it should not be executed in the main thread. Consider the asynchronous version .rxGet.

Link copied to clipboard
open override fun blockingGetWithoutChildren(): M?
Link copied to clipboard
open fun delete(): Completable

Removes the object in scope in an asynchronous way. See the implementation JavaDoc for details on how deletion is performed. It returns a Completable that completes as soon as the object is deleted in the database. The Completable fails if the object doesn't exist.

Link copied to clipboard
open fun deleteIfExist(): Completable

Removes the object in scope in an asynchronous way. See the implementation JavaDoc for details on how deletion is performed. Unlike .delete, it doesn't throw an exception if the object doesn't exist. It returns a Completable that completes as soon as the object is deleted in the database.

Link copied to clipboard
open fun exists(): Single<Boolean>

Returns if the object exists in an asynchronous way, returning a Single<Boolean>.

Link copied to clipboard
open fun get(): Single<M>

Returns the object in an asynchronous way, returning a Single<M>.

Link copied to clipboard
open fun rxDelete(): Completable

Removes the object in scope in an asynchronous way. See the implementation JavaDoc for details on how deletion is performed. It returns a Completable that completes as soon as the object is deleted in the database. The Completable fails if the object doesn't exist.

Link copied to clipboard
open fun rxDeleteIfExist(): Completable

Removes the object in scope in an asynchronous way. See the implementation JavaDoc for details on how deletion is performed. Unlike .rxDelete, it doesn't throw an exception if the object doesn't exist. It returns a Completable that completes as soon as the object is deleted in the database.

Link copied to clipboard
open fun rxExists(): Single<Boolean>

Returns if the object exists in an asynchronous way, returning a Single<Boolean>.

Link copied to clipboard
open fun rxGet(): Single<M>

Returns the object in an asynchronous way, returning a Single<M>.

Link copied to clipboard
open suspend override fun suspendDelete()

Removes the object in scope in a suspend way. See the implementation JavaDoc for details on how deletion is performed. It throws an exception if the object doesn't exist.

Link copied to clipboard
open suspend override fun suspendDeleteIfExist()

Removes the object in scope in a suspend way. See the implementation JavaDoc for details on how deletion is performed. Unlike .suspendDelete, it doesn't throw an exception if the object doesn't exist.

Link copied to clipboard
open suspend override fun suspendExists(): Boolean

Returns if the object exists in a suspend way.

Link copied to clipboard
open suspend override fun suspendGet(): M?

Returns the object in a suspend way.