Permalink
Browse files

Moving to non-overloaded method name - #1192

  • Loading branch information...
1 parent 9775894 commit e884c9e433c232dea75644d2f64dd8c3bb684e93 @Diagoras Diagoras committed Sep 27, 2016
@@ -122,8 +122,8 @@ class ActionTest extends AsyncTest[RelationalTestDB] {
val aSetup = ts.schema.create
val a1 = LiteralColumn(Option(1)).result
- val a2 = DBIO.sequence(Option(LiteralColumn(1).result))
- val a3 = DBIO.sequence(Option.empty[DBIO[Int]])
+ val a2 = DBIO.sequenceOption(Option(LiteralColumn(1).result))
+ val a3 = DBIO.sequenceOption(Option.empty[DBIO[Int]])
for {
_ <- aSetup
@@ -171,7 +171,7 @@ object DBIOAction {
}
/** Transform a `Option[ DBIO[R] ]` into a `DBIO[ Option[R] ]`. */
- def sequence[R, E <: Effect](in: Option[DBIOAction[R, NoStream, E]]): DBIOAction[Option[R], NoStream, E] = {
+ def sequenceOption[R, E <: Effect](in: Option[DBIOAction[R, NoStream, E]]): DBIOAction[Option[R], NoStream, E] = {
implicit val ec = DBIO.sameThreadExecutionContext
sequence(in.toList).map(_.headOption)
}

0 comments on commit e884c9e

Please sign in to comment.