Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support of RxJava #662

Open
GrishinSergey opened this issue Oct 23, 2019 · 1 comment
Open

Support of RxJava #662

GrishinSergey opened this issue Oct 23, 2019 · 1 comment

Comments

@GrishinSergey
Copy link

I know about this thread #326, but is is preety old and not updated, as I see, so I made new one.
So, some use cases of RxJava & Exposed:

  1. Data observability.
    Will be cool to subscribe to data, and, when something changed in table, receive update via rx observable. It is really useful, for example, in android apps. If this feature will be supported, I guess, that this will be the reasin to use Exposed instead other ORMs in android.
  2. Threads managing.
    As for me, will be cool, to manage threads for database, like in RxJava (subscribeOn , observeOn) (ok, it's also possible via coroutines)
  3. Flowable's back-pressure.
    Returning to examples in android ecosystem, imagine case, when database used as cache. UI subscribed to it and will be notified, when data were updated. And, just imagine, that this data size is huge, so, it will be usefull to handle via Flowable's back-pressure.
@nikolamin
Copy link

It will be very useful to have Exposed on the server and the Android app, especially when you have the same schema on the backend and in the apps. But, not having this feature is a deal-breaker for choosing Exposed over RoomDatabase on Android.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants