Skip to content

Commit

Permalink
add missing dependencies to module pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
scalavision committed Dec 9, 2020
1 parent c1d7d23 commit 2c7e6de
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/jvm/src/main/scala/zio/sql/delete.scala
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package zio.sql

trait DeleteModule { self: ExprModule with TableModule =>
trait DeleteModule { self: ExprModule with TableModule with SelectModule =>

sealed case class Delete[A](table: Table.Aux[A], whereExpr: Expr[_, A, Boolean]) {
def where[F](expr: Expr[F, A, Boolean]): Delete[A] = Delete(table, expr)
Expand Down
2 changes: 1 addition & 1 deletion core/jvm/src/main/scala/zio/sql/update.scala
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package zio.sql

trait UpdateModule { self: ExprModule with TableModule =>
trait UpdateModule { self: ExprModule with TableModule with SelectModule =>

sealed case class UpdateBuilder[A](table: Table.Aux[A]) {
def set[F: Features.IsSource, Value: TypeTag](lhs: Expr[F, A, Value], rhs: Expr[_, A, Value]): Update[A] =
Expand Down
2 changes: 1 addition & 1 deletion jdbc/src/main/scala/zio/sql/transaction.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package zio.sql

import zio.{ Cause, ZIO }

trait TransactionModule { self: SelectModule with DeleteModule with UpdateModule =>
trait TransactionModule { self: SelectModule with DeleteModule with UpdateModule with ExprModule with TableModule =>

import Transaction._

Expand Down

0 comments on commit 2c7e6de

Please sign in to comment.