Package dev.arunkumar.compass
Types
RealmBlock
Link copied to clipboard
RealmFunction
Link copied to clipboard
RealmModelTransform
Link copied to clipboard
Type representing a lambda with the Realm as the receiver and RealmModel represented by T
as the parameter and returning the computation as R
.
Use RealmModelTransform to convert a managed RealmModel to type R
. R
can be any type but usually it is a non managed RealmModel instance or a mapped object derived from managed RealmModel.
RealmQueryBuilder
Link copied to clipboard
A type representing a lambda with Realm as the receiver returning RealmQuery of RealmModel
Use RealmQueryBuilder to construct RealmQuery
instances. Various extensions are implemented on RealmQueryBuilder as a thread-safe alternative to RealmQuery methods.
RealmReceiver
Link copied to clipboard
Functions
asFlow
Link copied to clipboard
fun <T : RealmModel> RealmQueryBuilder<T>.asFlow(dispatcher: RealmDispatcherProvider = { RealmDispatcher() }): Flow<List<T>>
Content copied to clipboard
Returns a Flow of list of
R
generated using transform on the RealmModel instances satisfying the current RealmQuery.fun <T : RealmModel, R> RealmQueryBuilder<T>.asFlow(dispatcher: RealmDispatcherProvider = { RealmDispatcher() }, transform: RealmModelTransform<T, R>): Flow<List<R>>
Content copied to clipboard
Returns a Flow of list of
R
generated using transform on the RealmModel instances satisfying the current RealmQuery.DefaultRealm
Link copied to clipboard
Realm
Link copied to clipboard
RealmCopyTransform
Link copied to clipboard
RealmFunction
Link copied to clipboard
Acquires an instance of current default Realm, runs the given block with the realm and returns the result.
RealmQuery
Link copied to clipboard
fun <T : RealmModel> RealmQuery(builder: RealmQueryBuilder<T>): RealmQueryBuilder<T>
Content copied to clipboard
Construct a RealmQueryBuilder instance.
RealmTransaction
Link copied to clipboard
Acquires an instance of current default Realm, runs the a RealmTransaction with the
realm
as the receiver in block.toRealmList
Link copied to clipboard
transact
Link copied to clipboard