getDatabase

fun getDatabase(context: Context, scope: CoroutineScope): StudyPlanetDatabase

Gets an instance of the StudyPlanetDatabase.

Return

The StudyPlanetDatabase instance.

Parameters

context

The application context.

scope

The coroutine scope for database operations. Only used for populating the database.