getDatabase

Return an instance of the database. Creates a new instance if it doesn't exist.

Parameters

context

The context in which the database is being accessed. Used by Room database builder to create the database.