aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvlad <vlad@drivergrp.com>2017-01-09 18:07:24 -0800
committervlad <vlad@drivergrp.com>2017-01-09 18:07:24 -0800
commitfcad7d265ca0ee6f40cd006d3f76cedbcf853571 (patch)
tree6d5587c11b5081696242d0e94a03fd3adf4c0ab1
parent28eba9801feb6fb7c7689fac444664c80134b19d (diff)
downloaddriver-core-fcad7d265ca0ee6f40cd006d3f76cedbcf853571.tar.gz
driver-core-fcad7d265ca0ee6f40cd006d3f76cedbcf853571.tar.bz2
driver-core-fcad7d265ca0ee6f40cd006d3f76cedbcf853571.zip
Allowing abstract DAL functions to be used by API clientsv0.9.31
-rw-r--r--src/main/scala/xyz/driver/core/database/Dal.scala10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/scala/xyz/driver/core/database/Dal.scala b/src/main/scala/xyz/driver/core/database/Dal.scala
index e920392..0d38282 100644
--- a/src/main/scala/xyz/driver/core/database/Dal.scala
+++ b/src/main/scala/xyz/driver/core/database/Dal.scala
@@ -6,12 +6,12 @@ import scalaz.{ListT, Monad}
import scalaz.std.scalaFuture._
trait Dal {
- protected type T[D]
- protected implicit val monadT: Monad[T]
+ type T[D]
+ implicit val monadT: Monad[T]
- protected def execute[D](operations: T[D]): Future[D]
- protected def noAction[V](v: V): T[V]
- protected def customAction[R](action: => Future[R]): T[R]
+ def execute[D](operations: T[D]): Future[D]
+ def noAction[V](v: V): T[V]
+ def customAction[R](action: => Future[R]): T[R]
}
class FutureDal(executionContext: ExecutionContext) extends Dal {