getDatabase

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

Gets the instance of the database using the singleton pattern.

Return

The instance of SvkRoomDatabase.

Parameters

context

The application context.

scope

The CoroutineScope for handling asynchronous tasks.