MemberDao

interface MemberDao

Data Access Object for the member entity.

Functions

Link copied to clipboard
abstract fun getAllMembers(): ERROR CLASS: Symbol not found for Flow<kotlin/collections/List<com/example/eduskunta/data/db/entities/MemberEntity>>

Get all members from the database. Flow is used to get updates on the data.

Link copied to clipboard
abstract fun getMember(personNumber: Int): ERROR CLASS: Symbol not found for Flow<com/example/eduskunta/data/db/entities/MemberEntity?>

Get member by personNumber from the database. Flow is used to get updates on the data.

Link copied to clipboard
abstract fun getMembersByParty(party: String): ERROR CLASS: Symbol not found for Flow<kotlin/collections/List<com/example/eduskunta/data/db/entities/MemberEntity>>

Get members by party from the database. Flow is used to get updates on the data.

Link copied to clipboard
abstract suspend fun insertAll(members: List<MemberEntity>)

Insert a list of members into the database. If the member already exists, replace it.