75.15 Using the Database Inspector
As previously outlined in “The Android Room Persistence Library”, the Database Inspector tool may be used to inspect the content of Room databases associated with a running app and to perform minor data changes. After adding some database records using the RoomDemo app, display the Database Inspector tool using the View -> Tool Windows -> App Inspection menu option:
From within the inspector window, select the running app from the menu marked A in Figure 75-3 below:
Figure 75-3
From the Databases panel (B) double-click on the products table to view the table rows currently stored in the database. Enable the Live updates option (C) and then use the running app to add more records to the database. Note that the Database Inspector updates the table data (D) in real-time to reflect the changes.
Turn off Live updates so that the table is no longer read only, double-click on the quantity cell for a table row and change...