Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Realm Japan meetup #12

Realm Japan meetup #12

- Realm Objective-C/Swift 0.98.2
- Background query
- Subquery

9bf923e39671cde83584e3e926296c13?s=128

Kishikawa Katsumi

July 24, 2016
Tweet

Transcript

  1. Realm Japan Meetup #12

  2. #realm_jp

  3. https://github.com/kishikawakatsumi/ kishikawa katsumi http://kishikawakatsumi.hatenablog.com/ Realm

  4. Recent Updates

  5. Realm Objective-C/Swift 0.98.2 (was 0.97.0)

  6. Realm Objective-C/Swift 0.97.1 ˖ #00-#PPMה/4%BUF㘗ךفٗػذ؍ח㼎׃ג؎ٝرحؙأָ⢪ ִ׷״ֲחז׶ת׃׋կ

  7. Realm Objective-C/Swift 0.98.0 ˖ غحؙؚٓؐٝس٥ؙؒٔ  ؝ؙٖءّٝך㢌刿ח㼎ׅ׷鸐濼 ˖ ؟ـؙؒٔ ˖

    4XJGUך؟ه٦ز׾⨡姺
  8. όοΫάϥ΢ϯυɾΫΤϦ // RLMResultsͷ௨஌Λ؂ࢹ͠·͢ let token = realm .objects(Person) .filter("age >

    5") .addNotificationBlock { results, error in viewController.updateUI() } // ௨஌͕ෆཁʹͳͬͨΒ token.stop()
  9. αϒΫΤϦ let partTimeOverThirty = realm .objects(Employee) .filter("age > 30 AND

    fulltime = NO") let companies = realm .objects(Company) .filter("ANY employee IN %@", partTimeOverThirty)
  10. αϒΫΤϦ let companies = realm .objects(Company) .filter( "SUBQUERY(employees, $employee, $employee.age

    > 30 \ AND $employee.fulltime = NO).@count > 0" )
  11. αϒΫΤϦͷ੍ݶ ˖ ؟ـؙؒٔח黝欽דֹ׷꧊鎘ꟼ侧כ!DPVOU׌ֽדׅկ ˖ 46#26&3:  !DPVOUה嫰鯰דֹ׷ךכ㹀侧׌ֽדׅկ

  12. Realm Objective-C/Swift 0.99.0ʢ༧ఆʣ ˖ 'JOFHSBJOFE/PUJDBUJPO

  13. Realm Objective-C/Swift 0.98.2 (was 0.97.0)

  14. Where to find us • " Realm Japan User Group:

    facebook.com/groups/realmjp • " Twitter: twitter.com/realmJapan • GitHub: github.com/realm • " StackOverflow: ja.stackoverflow.com/questions/tagged/realm • " Email: help@realm.io • " Slack: slack.realm.io/
  15. Realm Japan User Group " facebook.com/groups/realmjp

  16. Public Realm Slack " slack.realm.io/

  17. Official Twitter/Facebook twitter.com/realm facebook.com/655569387879379

  18. Official Web site " realm.io/jp

  19. http://bit.ly/RealmJP_12 ୹͍Ξϯέʔτʹ͝ڠྗ͍ͩ͘͞