Realm
A Realm instance is the main entry point for interacting with a persisted realm.
See also
Types
Functions
asFlow
Link copied to clipboard
copyFromRealm
Link copied to clipboard
abstract fun <T : TypedRealmObject> copyFromRealm(obj: T, depth: UInt = UInt.MAX_VALUE): T
Content copied to clipboard
Makes an unmanaged in-memory copy of an already persisted io.realm.kotlin.types.RealmObject.
abstract fun <T : TypedRealmObject> copyFromRealm(dictionary: RealmDictionary<T?>, depth: UInt = UInt.MAX_VALUE): Map<String, T?>
Content copied to clipboard
Makes an unmanaged in-memory copy of a RealmDictionary of already persisted io.realm.kotlin.types.RealmObjects.
abstract fun <T : TypedRealmObject> copyFromRealm(collection: Iterable<T>, depth: UInt = UInt.MAX_VALUE): List<T>
Content copied to clipboard
Makes an unmanaged in-memory copy of a collection of already persisted io.realm.kotlin.types.RealmObjects.
getNumberOfActiveVersions
Link copied to clipboard
query
Link copied to clipboard
abstract override fun <T : BaseRealmObject> query(clazz: KClass<T>, query: String, vararg args: Any?): RealmQuery<T>
Content copied to clipboard
schema
Link copied to clipboard
schemaVersion
Link copied to clipboard
writeBlocking
Link copied to clipboard
writeCopyTo
Link copied to clipboard
Writes a compacted copy of the Realm to the given destination as defined by the targetConfiguration.
Properties
configuration
Link copied to clipboard
Extensions
query
Link copied to clipboard
inline fun <T : BaseRealmObject> Realm.query(query: String = TRUE_PREDICATE, vararg args: Any?): RealmQuery<T>
Content copied to clipboard