diff --git a/magnum-zio/src/main/scala/com/augustnagro/magnum/zio_integration/zio.scala b/magnum-zio/src/main/scala/com/augustnagro/magnum/zio_integration/zio.scala index f39a9df..c342e5a 100644 --- a/magnum-zio/src/main/scala/com/augustnagro/magnum/zio_integration/zio.scala +++ b/magnum-zio/src/main/scala/com/augustnagro/magnum/zio_integration/zio.scala @@ -14,6 +14,8 @@ import scala.util.control.NonFatal * * Usage: * {{{ + * import com.augustnagro.magnum.zio_integration.* + * * connect(datasource) { cn ?=> repo.findById(id) } * }}} */ @@ -29,6 +31,8 @@ def connect[A](dataSource: DataSource)(q: DbCon ?=> A)(implicit * * Usage: * {{{ + * import com.augustnagro.magnum.zio_integration.* + * * connect(transactor) { cn ?=> repo.findById(id) } * }}} */ @@ -55,6 +59,8 @@ def connect[A]( * * Usage: * {{{ + * import com.augustnagro.magnum.zio_integration.* + * * transact(dataSource) { tx ?=> repo.insertReturning(creator) } * }}} */ @@ -70,6 +76,8 @@ def transact[A](dataSource: DataSource)(q: DbTx ?=> A)(implicit * * Usage: * {{{ + * import com.augustnagro.magnum.zio_integration.* + * * transact(dataSource, ...) { tx ?=> repo.insertReturning(creator) } * }}} */ @@ -87,6 +95,8 @@ def transact[A](dataSource: DataSource, connectionConfig: Connection => Unit)( * * Usage: * {{{ + * import com.augustnagro.magnum.zio_integration.* + * * transact(transactor) { tx ?=> repo.insertReturning(creator) } * }}} */