FCDatabase

abstract class FCDatabase: Any

Manages access to the database

Constructors

Name Description
constructor()

Manages access to the database

Methods

flashcardDao

abstract fun flashcardDao(): FlashcardDao

Gets the DAO for the Flashcards. Use it to manage the Flashcards in the database

ReturnValue

Name Description
FlashcardDao

The DAO for the Flashcards

repositoryDao

abstract fun repositoryDao(): RepositoryDao

Gets the DAO for the Repositorys. Use it to manage the Repositorys in the database

ReturnValue

Name Description
RepositoryDao

The DAO for the Repositorys

CompanionObject

FCDatabase

abstract class FCDatabase: Any

Manages access to the database

Methods

getDatabase

fun getDatabase(context: Context): FCDatabase

Gets the current instance or creates a new one.

Parameters

Name Description
context: Context

The context of the database

ReturnValue

Name Description
FCDatabase

The current instance of the FCDatabase adhearing to the given context