mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 18:38:26 +00:00
Apply autoformat
This commit is contained in:
@ -1,13 +1,15 @@
|
||||
package docspell.store
|
||||
|
||||
import scala.concurrent.ExecutionContext
|
||||
|
||||
import cats.effect._
|
||||
|
||||
import docspell.common.LenientUri
|
||||
import docspell.store.impl.StoreImpl
|
||||
|
||||
import doobie._
|
||||
import org.h2.jdbcx.JdbcConnectionPool
|
||||
|
||||
import scala.concurrent.ExecutionContext
|
||||
|
||||
trait StoreFixture {
|
||||
def withStore(db: String)(code: Store[IO] => IO[Unit]): Unit = {
|
||||
//StoreFixture.store(StoreFixture.memoryDB(db)).use(code).unsafeRunSync()
|
||||
|
@ -2,13 +2,14 @@ package docspell.store.generator
|
||||
|
||||
import java.time.LocalDate
|
||||
|
||||
import docspell.store.records._
|
||||
import munit._
|
||||
import docspell.common._
|
||||
import docspell.query.ItemQueryParser
|
||||
import docspell.store.queries.AttachCountTable
|
||||
import docspell.store.qb.DSL._
|
||||
import docspell.store.qb.generator.{ItemQueryGenerator, Tables}
|
||||
import docspell.store.queries.AttachCountTable
|
||||
import docspell.store.records._
|
||||
|
||||
import munit._
|
||||
|
||||
class ItemQueryGeneratorTest extends FunSuite {
|
||||
import docspell.store.impl.DoobieMeta._
|
||||
|
@ -1,8 +1,9 @@
|
||||
package docspell.store.qb
|
||||
|
||||
import munit._
|
||||
import docspell.store.qb.model._
|
||||
import docspell.store.qb.DSL._
|
||||
import docspell.store.qb.model._
|
||||
|
||||
import munit._
|
||||
|
||||
class QueryBuilderTest extends FunSuite {
|
||||
|
||||
|
@ -1,10 +1,11 @@
|
||||
package docspell.store.qb.impl
|
||||
|
||||
import munit._
|
||||
import docspell.store.qb._
|
||||
import docspell.store.qb.DSL._
|
||||
import docspell.store.qb._
|
||||
import docspell.store.qb.model.{CourseRecord, PersonRecord}
|
||||
|
||||
import munit._
|
||||
|
||||
class ConditionBuilderTest extends FunSuite {
|
||||
|
||||
val c = CourseRecord.as("c")
|
||||
|
@ -1,10 +1,11 @@
|
||||
package docspell.store.qb.impl
|
||||
|
||||
import munit._
|
||||
import docspell.store.qb._
|
||||
import docspell.store.qb.DSL._
|
||||
import docspell.store.qb._
|
||||
import docspell.store.qb.model.{CourseRecord, PersonRecord}
|
||||
|
||||
import munit._
|
||||
|
||||
class DSLTest extends FunSuite {
|
||||
|
||||
val course = CourseRecord.as("c")
|
||||
|
@ -1,9 +1,10 @@
|
||||
package docspell.store.qb.impl
|
||||
|
||||
import munit._
|
||||
import docspell.store.qb.DSL._
|
||||
import docspell.store.qb._
|
||||
import docspell.store.qb.model._
|
||||
import docspell.store.qb.DSL._
|
||||
|
||||
import munit._
|
||||
|
||||
class SelectBuilderTest extends FunSuite {
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
package docspell.store.qb.model
|
||||
|
||||
import cats.data.NonEmptyList
|
||||
|
||||
import docspell.store.qb._
|
||||
|
||||
case class CourseRecord(
|
||||
|
@ -1,8 +1,9 @@
|
||||
package docspell.store.qb.model
|
||||
|
||||
import cats.data.NonEmptyList
|
||||
import docspell.store.qb._
|
||||
|
||||
import docspell.common._
|
||||
import docspell.store.qb._
|
||||
|
||||
case class PersonRecord(id: Long, name: String, created: Timestamp)
|
||||
|
||||
|
Reference in New Issue
Block a user