mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-23 19:08:26 +00:00
Working poc of postgresql based fulltext search backend
This commit is contained in:
@ -34,6 +34,8 @@ trait Store[F[_]] {
|
||||
): FileRepository[F]
|
||||
|
||||
def add(insert: ConnectionIO[Int], exists: ConnectionIO[Boolean]): F[AddResult]
|
||||
|
||||
def transactor: Transactor[F]
|
||||
}
|
||||
|
||||
object Store {
|
||||
|
@ -24,8 +24,9 @@ final class StoreImpl[F[_]: Async](
|
||||
val fileRepo: FileRepository[F],
|
||||
jdbc: JdbcConfig,
|
||||
ds: DataSource,
|
||||
xa: Transactor[F]
|
||||
val transactor: Transactor[F]
|
||||
) extends Store[F] {
|
||||
private[this] val xa = transactor
|
||||
|
||||
def createFileRepository(
|
||||
cfg: FileRepositoryConfig,
|
||||
|
Reference in New Issue
Block a user