Using ViewModel with SQLite database and not Room database Using ViewModel with SQLite database and not Room database sqlite sqlite

Using ViewModel with SQLite database and not Room database


Can I use raw SQLite with ViewModel?

Yes, as ViewModel has nothing to do with any particular source of data.

Was ViewModel designed to work only with Room database?

No. They are completely independent.