Autocomplete tag input

This commit is contained in:
MM20
2022-09-22 22:22:40 +02:00
parent 5073cb0297
commit 060e2975aa
5 changed files with 102 additions and 80 deletions
@@ -32,4 +32,10 @@ interface CustomAttrsDao {
clearCustomAttribute(key, "tag")
insertCustomAttributes(tags)
}
@Query("SELECT DISTINCT value FROM CustomAttributes WHERE type = 'tag' AND value LIKE :like ORDER BY value")
suspend fun getAllTagsLike(like: String): List<String>
@Query("SELECT DISTINCT value FROM CustomAttributes WHERE type = 'tag' ORDER BY value")
suspend fun getAllTags(): List<String>
}