Use SQLDelight on Category screen (#7310)

* Use SQLDelight on Category screen

* Include category name in DuplicateNameException
This commit is contained in:
Andreas
2022-06-16 16:59:10 +02:00
committed by GitHub
parent 602168bc48
commit 017f6b22f0
17 changed files with 286 additions and 56 deletions

View File

@@ -30,8 +30,4 @@ interface CategoryQueries : DbProvider {
.prepare()
fun insertCategory(category: Category) = db.put().`object`(category).prepare()
fun insertCategories(categories: List<Category>) = db.put().objects(categories).prepare()
fun deleteCategories(categories: List<Category>) = db.delete().objects(categories).prepare()
}