pushtorefresh / storio

Reactive API for SQLiteDatabase and ContentResolver.
Apache License 2.0
2.55k stars 182 forks source link

Add example of integration with SQLDelight #785

Closed nikitin-da closed 7 years ago

nikitin-da commented 7 years ago

https://github.com/square/sqldelight

artem-zinnatullin commented 7 years ago

Great idea! Since you successfully use it in production with StorIO you're very good source of info, maybe also write a blog article (or even markdown post here in repo) with your story?

thevery commented 7 years ago

We're going into production in couple of weeks I hope :) During migration we've faced several issues in both sqldelight and storio, but most of them (except https://github.com/pushtorefresh/storio/issues/704) are already resolved!

thevery commented 7 years ago

I think that we should start we some sample anyway, what project structure should we use for it? @artem-zinnatullin

artem-zinnatullin commented 7 years ago

Completely up to you, I think you can basically copy-paste current sample (it's pretty simple to look at) and just replace/add queries with SQLDelight

nayeemzen commented 7 years ago

Any updates on this? Would love to see an example!

nikitin-da commented 7 years ago

I'm really sorry for such delays, I don't have time right now =( I hope I will open request in two weeks

thevery commented 7 years ago

Same here :(

nikitin-da commented 7 years ago

@nayeemzen sorry for such delay =( I have opened request with this example The main idea is to use mapping generated by SQLDelight for complex objects: serialization and deserialization StorIO will be helpful in such case mainly for rx and notifications