From 39d90ea9c5c52b2446bcaaa39ebe3afebe16a7c7 Mon Sep 17 00:00:00 2001 From: Jules Ivanic Date: Fri, 11 Oct 2024 09:53:40 +1100 Subject: [PATCH] Add ZIO module providing `connect` and `transact` mechanism adapted to ZIO --- .../scala/com/augustnagro/magnum/zio/zio.scala | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/magnum-zio/src/main/scala/com/augustnagro/magnum/zio/zio.scala b/magnum-zio/src/main/scala/com/augustnagro/magnum/zio/zio.scala index 8c080a7..f452982 100644 --- a/magnum-zio/src/main/scala/com/augustnagro/magnum/zio/zio.scala +++ b/magnum-zio/src/main/scala/com/augustnagro/magnum/zio/zio.scala @@ -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: * {{{ @@ -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: * {{{ @@ -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: * {{{ @@ -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: * {{{