
Android Room Database with ViewModel and LiveData
Sep 16, 2024
Room is one of android architecure component, which is an abstact layer for the Sqlite Database
By using the room we can hanlde the SQLite Database is easily
Room having 3 main modules
Entity : Entity Represents a table in the database. To create a table with entity we need to annotate class with @Entity
DAO Data : Access Object is used to access and manage the Data. DAO is an interface wich is annotate with @DAO
Database : It works as database holder, A class annotated with @Database and extends with Roomdatabase
https://rrtutors.com/tutorials/Kotlin-Room-Database-example-with-ViewModel-and-Live-Data
Show More Show Less 