Don’t finishing brand new application with time plus had their experts: A short time immediately following Valentine’s the inventors over at rectangular (who more?) unlock acquired SQLBrite which seems to be the newest database layer I was dreaming regarding: It’s a portable wrapper to SQLiteOpenHelper and you will ContentResolver, it generally does not cover up SQLite otherwise SQL API, supporting purchases and multithreading and you may ultimately they raises reactive weight semantics so you can question. Particularly, aforementioned a person is value mentioning: Assuming a-row away from good sql databases table will get updated, registered or eliminated SQLBrite trigger a notice to inform requests, being subscribed for dining table dataset transform.
Contained in this fake Tinder software you might discover ChatActivity which displays a list queried about local SQLite databases. Just like the mentioned previously ahead of I prefer GCM to deliver and you will receive cam texts. Whenever application get an excellent GCM Push alerts who has a chat message, the fresh software areas the new ChatMessage into local database. The top benefit of using SQLBrite would be the fact from the staying a great the ChatMessage toward local database ChatActivity will get current immediately because for as long as ChatActivity isn’t destroyed the first ask executed in ChatActivity.onCreate() in order to access Checklist remains subscribed (inquire is Rx Subscriber) on root database dining table (database dining table are Rx Observable). „And so i decided to play with SQLBrite in the fake Tinder software“ weiterlesen