mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 10:28:27 +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,
|
||||
|
@ -23,7 +23,7 @@ class PostgresqlMigrateTest
|
||||
with TestContainerForAll
|
||||
with TestLoggingConfig {
|
||||
override val containerDef: PostgreSQLContainer.Def =
|
||||
PostgreSQLContainer.Def(DockerImageName.parse("postgres:13"))
|
||||
PostgreSQLContainer.Def(DockerImageName.parse("postgres:14"))
|
||||
|
||||
test("postgres empty schema migration") {
|
||||
assume(Docker.existsUnsafe, "docker doesn't exist!")
|
||||
|
Reference in New Issue
Block a user