Update full-text index when changing data

This commit is contained in:
Eike Kettner
2020-06-21 00:33:39 +02:00
parent 383614f908
commit 9acea8307d
5 changed files with 86 additions and 12 deletions

View File

@ -183,4 +183,6 @@ object RAttachment {
n2 <- deleteFrom(table, id.is(attachId)).update.run
} yield n0 + n1 + n2
def findItemId(attachId: Ident): ConnectionIO[Option[Ident]] =
selectSimple(Seq(itemId), table, id.is(attachId)).query[Ident].option
}