79174244

Date: 2024-11-10 06:20:08
Score: 0.5
Natty:
Report link

Room has a builder that created an in-memory database:

Room.inMemoryDatabaseBuilder(context, AppDatabase::class.java, DATABASE_NAME)

If you combine this with dependency injection (to build a singleton of the database instance) you'll get a robust and extensible solution.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jesús Barrera