doobie.syntax.connectionio.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of doobie-core_2.10 Show documentation
Show all versions of doobie-core_2.10 Show documentation
Pure functional JDBC layer for Scala.
The newest version!
package doobie.syntax
import doobie.free.connection.ConnectionIO
import doobie.util.transactor.Transactor
import scalaz.Monad
object connectionio {
implicit class MoreConnectionIOOps[A](ma: ConnectionIO[A]) {
def transact[M[_]: Monad](xa: Transactor[M]): M[A] =
xa.trans.apply(ma)
}
}