mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
Reformat code
This commit is contained in:
@ -1,7 +1,14 @@
|
||||
/*
|
||||
* Copyright 2020 Eike K. & Contributors
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
package docspell.ftspsql
|
||||
|
||||
import cats.effect._
|
||||
import cats.implicits._
|
||||
|
||||
import org.flywaydb.core.Flyway
|
||||
import org.flywaydb.core.api.output.MigrateResult
|
||||
|
||||
|
@ -1,6 +1,13 @@
|
||||
/*
|
||||
* Copyright 2020 Eike K. & Contributors
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
package docspell.ftspsql
|
||||
|
||||
import docspell.common._
|
||||
|
||||
import doobie._
|
||||
import doobie.util.log.Success
|
||||
|
||||
|
@ -1,6 +1,13 @@
|
||||
/*
|
||||
* Copyright 2020 Eike K. & Contributors
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
package docspell.ftspsql
|
||||
|
||||
import cats.syntax.all._
|
||||
|
||||
import docspell.common.{Ident, Language}
|
||||
import docspell.ftsclient.TextData
|
||||
|
||||
|
@ -1,11 +1,19 @@
|
||||
/*
|
||||
* Copyright 2020 Eike K. & Contributors
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
package docspell.ftspsql
|
||||
|
||||
import cats.data.NonEmptyList
|
||||
import fs2.Chunk
|
||||
|
||||
import docspell.common._
|
||||
import docspell.ftsclient.FtsQuery
|
||||
|
||||
import doobie._
|
||||
import doobie.implicits._
|
||||
import fs2.Chunk
|
||||
|
||||
object FtsRepository extends DoobieMeta {
|
||||
val table = fr"ftspsql_search"
|
||||
|
@ -1,3 +1,9 @@
|
||||
/*
|
||||
* Copyright 2020 Eike K. & Contributors
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
package docspell.ftspsql
|
||||
|
||||
import cats.data.NonEmptyList
|
||||
|
@ -1,3 +1,9 @@
|
||||
/*
|
||||
* Copyright 2020 Eike K. & Contributors
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
package docspell.ftspsql
|
||||
|
||||
import docspell.common._
|
||||
|
@ -1,17 +1,25 @@
|
||||
/*
|
||||
* Copyright 2020 Eike K. & Contributors
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
package docspell.ftspsql
|
||||
|
||||
import scala.concurrent.ExecutionContext
|
||||
|
||||
import cats.effect._
|
||||
import cats.implicits._
|
||||
import com.zaxxer.hikari.HikariDataSource
|
||||
import fs2.Stream
|
||||
|
||||
import docspell.common._
|
||||
import docspell.ftsclient._
|
||||
import docspell.logging.Logger
|
||||
|
||||
import com.zaxxer.hikari.HikariDataSource
|
||||
import doobie._
|
||||
import doobie.hikari.HikariTransactor
|
||||
import doobie.implicits._
|
||||
import fs2.Stream
|
||||
|
||||
import scala.concurrent.ExecutionContext
|
||||
|
||||
final class PsqlFtsClient[F[_]: Sync](cfg: PsqlConfig, xa: Transactor[F])
|
||||
extends FtsClient[F] {
|
||||
|
@ -1,3 +1,9 @@
|
||||
/*
|
||||
* Copyright 2020 Eike K. & Contributors
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
package docspell.ftspsql
|
||||
|
||||
import cats.Order
|
||||
|
@ -1,8 +1,14 @@
|
||||
/*
|
||||
* Copyright 2020 Eike K. & Contributors
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
package docspell.ftspsql
|
||||
|
||||
import docspell.common._
|
||||
import docspell.ftsclient.FtsResult.{ItemMatch, MatchData}
|
||||
import docspell.ftsclient.FtsResult
|
||||
import docspell.ftsclient.FtsResult.{ItemMatch, MatchData}
|
||||
|
||||
final case class SearchResult(
|
||||
id: Ident,
|
||||
|
@ -1,3 +1,9 @@
|
||||
/*
|
||||
* Copyright 2020 Eike K. & Contributors
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
package docspell.ftspsql
|
||||
|
||||
case class SearchSummary(count: Long, maxScore: Double)
|
||||
|
Reference in New Issue
Block a user