Skip to content

Commit

Permalink
Review: Prefer magzio over zio_integration package name
Browse files Browse the repository at this point in the history
  • Loading branch information
guizmaii committed Dec 4, 2024
1 parent 413551d commit ce9434d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ To use the ZIO integration, add the following dependency:

and import these utils in your code with:
```scala
import com.augustnagro.magnum.zio_integration.*
import com.augustnagro.magnum.magzio.*
```

## Motivation
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.augustnagro.magnum.zio_integration
package com.augustnagro.magnum.magzio

import zio.{Trace, ZIO}
import com.augustnagro.magnum.*
Expand All @@ -14,7 +14,7 @@ import scala.util.control.NonFatal
*
* Usage:
* {{{
* import com.augustnagro.magnum.zio_integration.*
* import com.augustnagro.magnum.magzio.*
*
* connect(datasource) { cn ?=> repo.findById(id) }
* }}}
Expand All @@ -31,7 +31,7 @@ def connect[A](dataSource: DataSource)(q: DbCon ?=> A)(implicit
*
* Usage:
* {{{
* import com.augustnagro.magnum.zio_integration.*
* import com.augustnagro.magnum.magzio.*
*
* connect(transactor) { cn ?=> repo.findById(id) }
* }}}
Expand Down Expand Up @@ -59,7 +59,7 @@ def connect[A](
*
* Usage:
* {{{
* import com.augustnagro.magnum.zio_integration.*
* import com.augustnagro.magnum.magzio.*
*
* transact(dataSource) { tx ?=> repo.insertReturning(creator) }
* }}}
Expand All @@ -76,7 +76,7 @@ def transact[A](dataSource: DataSource)(q: DbTx ?=> A)(implicit
*
* Usage:
* {{{
* import com.augustnagro.magnum.zio_integration.*
* import com.augustnagro.magnum.magzio.*
*
* transact(dataSource, ...) { tx ?=> repo.insertReturning(creator) }
* }}}
Expand All @@ -95,7 +95,7 @@ def transact[A](dataSource: DataSource, connectionConfig: Connection => Unit)(
*
* Usage:
* {{{
* import com.augustnagro.magnum.zio_integration.*
* import com.augustnagro.magnum.magzio.*
*
* transact(transactor) { tx ?=> repo.insertReturning(creator) }
* }}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
package com.augustnagro.magnum.magzio

import com.augustnagro.magnum.*
import com.dimafeng.testcontainers.munit.fixtures.TestContainersFixtures
import com.dimafeng.testcontainers.{
Expand All @@ -21,7 +23,7 @@ import scala.util.Using.Manager
/** Re-implementation of the Magnum [[PgTests]] for ZIO
*/
class ZioPgTests extends FunSuite, TestContainersFixtures:
import com.augustnagro.magnum.zio_integration.*
import com.augustnagro.magnum.magzio.*

val runtime: Runtime[Any] = Runtime.default

Expand Down

0 comments on commit ce9434d

Please sign in to comment.