LocalRepository

interface LocalRepository

contract for repository pattern for local database

Functions

Link copied to clipboard
abstract suspend fun deleteEducationById(education: Education)
Link copied to clipboard
abstract suspend fun deleteProjectById(project: Project)
Link copied to clipboard
abstract suspend fun deleteResume(resume: Resume)
Link copied to clipboard
abstract suspend fun deleteSkillById(skill: Skill)
Link copied to clipboard
abstract suspend fun deleteWorkById(work: Work)
Link copied to clipboard
abstract suspend fun getEducationsByResumeId(resumeId: Int): List<Education>
Link copied to clipboard
abstract suspend fun getProjectsByResumeId(resumeId: Int): List<Project>
Link copied to clipboard
abstract fun getResumeById(resumeId: Int): Resume?
Link copied to clipboard
abstract fun getResumes(): Flow<List<Resume>>
Link copied to clipboard
abstract suspend fun getSkillsByResumeId(resumeId: Int): List<Skill>
Link copied to clipboard
abstract suspend fun getWorksByResumeId(resumeId: Int): List<Work>
Link copied to clipboard
abstract suspend fun insertOrUpdateEducations(resumeId: Int, educations: List<Education>): Int?
Link copied to clipboard
abstract suspend fun insertOrUpdateProjects(resumeId: Int, projects: List<Project>): Int?
Link copied to clipboard
abstract suspend fun insertOrUpdateResume(resume: Resume): Int?
Link copied to clipboard
abstract suspend fun insertOrUpdateSkills(resumeId: Int, skills: List<Skill>): Int?
Link copied to clipboard
abstract suspend fun insertOrUpdateWorks(resumeId: Int, works: List<Work>): Int?

Inheritors

Link copied to clipboard