Skip to content

Commit

Permalink
Add ZIO module providing connect and transact mechanism adapted t…
Browse files Browse the repository at this point in the history
…o ZIO
  • Loading branch information
guizmaii committed Oct 20, 2024
1 parent be71df8 commit 25c66b4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,6 @@ lazy val magnumZio = project
Test / fork := true,
publish / skip := false,
libraryDependencies ++= Seq(
"dev.zio" %% "zio" % "2.1.9" % Provided
"dev.zio" %% "zio" % "2.1.11" % Provided
)
)
16 changes: 8 additions & 8 deletions magnum-zio/src/main/scala/com/augustnagro/magnum/zio/zio.scala
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import scala.util.control.NonFatal

/** Executes a given query on a given DataSource
*
* Re-implementation of
* [[com.augustnagro.magnum.connect(dataSource: DataSource)]] for ZIO
* Re-implementation for ZIO of
* [[com.augustnagro.magnum.connect(dataSource: DataSource)]]
*
* Usage:
* {{{
Expand All @@ -23,8 +23,8 @@ def connect[A](dataSource: DataSource)(q: DbCon ?=> A)(implicit

/** Executes a given query on a given Transactor
*
* Re-implementation of
* [[com.augustnagro.magnum.connect(dataSource: DataSource)]] for ZIO
* Re-implementation for ZIO of
* [[com.augustnagro.magnum.connect(dataSource: DataSource)]]
*
* Usage:
* {{{
Expand All @@ -49,8 +49,8 @@ def connect[A](

/** Executes a given transaction on a given DataSource
*
* Re-implementation of
* [[com.augustnagro.magnum.transact(transactor: Transactor)]] for ZIO
* Re-implementation for ZIO of
* [[com.augustnagro.magnum.transact(transactor: Transactor)]]
*
* Usage:
* {{{
Expand All @@ -64,8 +64,8 @@ def transact[A](dataSource: DataSource)(q: DbTx ?=> A)(implicit

/** Executes a given transaction on a given Transactor
*
* Re-implementation of
* [[com.augustnagro.magnum.transact(transactor: Transactor)]] for ZIO
* Re-implementation for ZIO of
* [[com.augustnagro.magnum.transact(transactor: Transactor)]]
*
* Usage:
* {{{
Expand Down

0 comments on commit 25c66b4

Please sign in to comment.