{"repo":"RxSwiftCommunity/RxRealm","free":true,"listed":false,"github":"https://github.com/RxSwiftCommunity/RxRealm","clone":"git clone https://github.com/RxSwiftCommunity/RxRealm.git","description":"RxSwift extension for RealmSwift's types","language":"Swift","stars":1160,"topics":["realm","rxswift","realmswift","database","reactive"],"license":"MIT","category":"databases-storage","readme_excerpt":"RxRealm This library is a thin wrapper around RealmSwift ( Realm Docs ). Table of contents: 1. Observing object collections 2. Observing a single object 3. Write transactions 4. Automatically binding table and collection views 5. Example app Observing object collections RxRealm can be used to create Observable s from objects of type Results , List , LinkingObjects or AnyRealmCollection . These types are typically used to load and observe object collections from the Realm Mobile Database. Observable.collection(from:synchronousStart:) Emits an event each time the collection changes: The above prints out \"X laps\" each time a lap is added or removed from the database. If you set synchronousStart to true (the default value), the first element will be emitted synchronously - e.g. when you're binding UI it might not be possible for an asynchronous notification to come through. Observable.array(from:synchronousStart:) Upon each change fetches a snapshot of the Realm collection and converts it to an array value (for example if you want to use array methods on the collection): Observable.changeset(from:synchronousStart:) Emits every time the collection changes and provides the exact indexes that has been deleted, inserted or updated: Observable.arrayWithChangeset(from:synchronousStart:) Combines the result of Observable.array(from:) and Observable.changeset(from:) returning an Observable , RealmChangeset? Observing a single object There's a separate API to make it easier to observe a s","default_branch":null,"files":null,"tree":[],"storefront":"/r/RxSwiftCommunity","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/RxSwiftCommunity/RxRealm/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}