Skip to content

Commit

Permalink
Update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
guizmaii committed Nov 14, 2024
1 parent 095c4c3 commit f7f47c0
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import scala.util.control.NonFatal
*
* Usage:
* {{{
* import com.augustnagro.magnum.zio_integration.*
*
* connect(datasource) { cn ?=> repo.findById(id) }
* }}}
*/
Expand All @@ -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) }
* }}}
*/
Expand All @@ -55,6 +59,8 @@ def connect[A](
*
* Usage:
* {{{
* import com.augustnagro.magnum.zio_integration.*
*
* transact(dataSource) { tx ?=> repo.insertReturning(creator) }
* }}}
*/
Expand All @@ -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) }
* }}}
*/
Expand All @@ -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) }
* }}}
*/
Expand Down

0 comments on commit f7f47c0

Please sign in to comment.