Skip to content

Commit

Permalink
revert changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jatcwang committed Nov 5, 2024
1 parent 6f227f2 commit 21f2c0e
Show file tree
Hide file tree
Showing 13 changed files with 33 additions and 34 deletions.
28 changes: 20 additions & 8 deletions modules/core/src/main/scala/doobie/aliases.scala
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,18 @@ trait Types {
/** @group Type Aliases - Core */
type Meta[A] = doobie.util.meta.Meta[A]

/** @group Type Aliases - Core */
type Get[A] = doobie.util.Get[A]

/** @group Type Aliases - Core */
type Put[A] = doobie.util.Put[A]

/** @group Type Aliases - Core */
type Read[A] = doobie.util.Read[A]

/** @group Type Aliases - Core */
type Write[A] = doobie.util.Write[A]

/** @group Type Aliases - Core */
type Query[A, B] = doobie.util.query.Query[A, B]

Expand Down Expand Up @@ -50,17 +62,17 @@ trait Modules {
/** @group Module Aliases - Core */
val Meta = doobie.util.meta.Meta

/** @group Type Aliases - Core */
type Get[A] = doobie.util.Get[A]
/** @group Module Aliases - Core */
val Get = doobie.util.Get

/** @group Type Aliases - Core */
type Put[A] = doobie.util.Put[A]
/** @group Module Aliases - Core */
val Put = doobie.util.Put

/** @group Type Aliases - Core */
type Read[A] = doobie.util.Read[A]
/** @group Module Aliases - Core */
val Read = doobie.util.Read

/** @group Type Aliases - Core */
type Write[A] = doobie.util.Write[A]
/** @group Module Aliases - Core */
val Write = doobie.util.Write

/** @group Module Aliases - Core */
val Query = doobie.util.query.Query
Expand Down
5 changes: 1 addition & 4 deletions modules/core/src/test/scala/doobie/issue/706.scala
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@ package doobie.issue
import cats.*
import cats.syntax.all.*
import cats.effect.IO
import doobie.*
import doobie.implicits.*
import doobie.util.Write
import doobie.*, doobie.implicits.*
import org.scalacheck.Prop.forAll

import scala.Predef.*

class `706` extends munit.ScalaCheckSuite {
Expand Down
3 changes: 1 addition & 2 deletions modules/core/src/test/scala/doobie/util/FragmentsSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
package doobie.util

import cats.data.NonEmptyList
import doobie.implicits.*
import doobie.*, doobie.implicits.*
import cats.effect.IO
import doobie.{Transactor, Fragment, Fragments}

class FragmentsSuite extends munit.FunSuite {
import Fragments.*
Expand Down
14 changes: 6 additions & 8 deletions modules/example/src/main/scala-2/example/Orm.scala
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@
package example

import cats.Show
import cats.effect.{ExitCode, IO, IOApp}
import cats.syntax.all.*
import doobie.{ConnectionIO, Query, Query0, Transactor, Update}
import doobie.implicits.*
import doobie.util.{Read, Write}
import cats.effect.{IO, IOApp, ExitCode}
import cats.syntax.all._
import doobie._, doobie.implicits._
import fs2.Stream
import shapeless.*
import shapeless.ops.record.*
import shapeless.ops.hlist.*
import shapeless._
import shapeless.ops.record._
import shapeless.ops.hlist._

/** A super-simple ORM for super-simple data types. We assume auto-generated keys, represented externally, and columns
* map 1:1 with fields and have the same names.
Expand Down
3 changes: 1 addition & 2 deletions modules/example/src/main/scala/example/FirstExample.scala
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ package example
import cats.Show
import cats.syntax.all.*
import cats.effect.{IO, IOApp}
import doobie.{ConnectionIO, FC, Query0, Transactor, Update, Update0}
import fs2.Stream
import doobie.implicits.*
import doobie.*, doobie.implicits.*

// Example lifted from slick
object FirstExample extends IOApp.Simple {
Expand Down
3 changes: 1 addition & 2 deletions modules/example/src/main/scala/example/PostgresPoint.scala
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
package example

import cats.effect.{IO, IOApp}
import doobie.{Meta, Transactor}
import doobie.util.Write
import doobie.*
import doobie.implicits.*
import doobie.postgres.implicits.*
import org.postgresql.geometric.PGpoint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ package doobie.h2.circe
import cats.effect.IO
import doobie.*
import doobie.implicits.*
import doobie.util.{Get, Put, Read, Write}
import io.circe.{Decoder, Encoder, Json}

class H2JsonSuite extends munit.FunSuite {
Expand Down
2 changes: 1 addition & 1 deletion modules/h2/src/test/scala/doobie/h2/h2types.scala
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
package doobie.h2

import java.util.UUID

import cats.effect.IO
import doobie.*
import doobie.implicits.*
import doobie.h2.implicits.*
import doobie.util.{Put, Get, Read}
import doobie.util.analysis.{Analysis, ColumnTypeError}
import doobie.util.arbitraries.SQLArbitraries.*
import doobie.util.arbitraries.StringArbitraries.*
Expand Down
2 changes: 1 addition & 1 deletion modules/mysql/src/test/scala/doobie/mysql/CheckSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
package doobie.mysql

import java.time.{LocalDate, LocalDateTime, LocalTime, OffsetDateTime}

import doobie.*
import doobie.implicits.*
import doobie.mysql.implicits.*
import doobie.util.Read
import doobie.util.analysis.ColumnTypeError

class CheckSuite extends munit.FunSuite {
Expand Down
1 change: 0 additions & 1 deletion modules/mysql/src/test/scala/doobie/mysql/TypesSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ package doobie.mysql
import java.time.ZoneOffset

import doobie.*
import doobie.util.{Put, Get}
import doobie.implicits.*
import doobie.mysql.implicits.*
import doobie.mysql.util.arbitraries.SQLArbitraries.*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ import doobie.*
import doobie.implicits.*
import doobie.postgres.implicits.*
import doobie.postgres.enums.*
import doobie.util.{Put, Read}
import doobie.util.analysis.{ColumnTypeError, ParameterTypeError}

import java.time.{Instant, LocalDate, LocalDateTime, LocalTime, OffsetDateTime, OffsetTime}

class CheckSuite extends munit.FunSuite {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import java.net.InetAddress
import java.time.{LocalDate, LocalDateTime, OffsetDateTime, ZoneOffset}
import java.util.UUID
import doobie.*
import doobie.util.{Put, Get}
import doobie.implicits.*
import doobie.postgres.enums.*
import doobie.postgres.implicits.*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
package doobie
package refined

import doobie.util.{Read, Write}
import org.tpolecat.typename.*

import doobie.util.invariant.*
import eu.timepit.refined.api.{RefType, Validate}

Expand Down

0 comments on commit 21f2c0e

Please sign in to comment.