diff options
author | vlad <vlad@drivergrp.com> | 2017-01-09 18:07:24 -0800 |
---|---|---|
committer | vlad <vlad@drivergrp.com> | 2017-01-09 18:07:24 -0800 |
commit | fcad7d265ca0ee6f40cd006d3f76cedbcf853571 (patch) | |
tree | 6d5587c11b5081696242d0e94a03fd3adf4c0ab1 /src/main/scala/xyz | |
parent | 28eba9801feb6fb7c7689fac444664c80134b19d (diff) | |
download | driver-core-0.9.31.tar.gz driver-core-0.9.31.tar.bz2 driver-core-0.9.31.zip |
Allowing abstract DAL functions to be used by API clientsv0.9.31
Diffstat (limited to 'src/main/scala/xyz')
-rw-r--r-- | src/main/scala/xyz/driver/core/database/Dal.scala | 10 |
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 { |