DBIOAction

slick.dbio.DBIOAction
See theDBIOAction companion trait
object DBIOAction

Attributes

Companion
trait
Source
DBIOAction.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
DBIOAction.type

Members list

Value members

Concrete methods

def failed(t: Throwable): DBIOAction[Nothing, NoStream, Effect]

Create a DBIOAction that always fails.

Create a DBIOAction that always fails.

Attributes

Source
DBIOAction.scala
def fold[T, E <: Effect](actions: Seq[DBIOAction[T, NoStream, E]], zero: T)(f: (T, T) => T)(implicit ec: ExecutionContext): DBIOAction[T, NoStream, E]

Create a DBIOAction that runs some other actions in sequence and combines their results with the given function.

Create a DBIOAction that runs some other actions in sequence and combines their results with the given function.

Attributes

Source
DBIOAction.scala
def from[R](f: Future[R]): DBIOAction[R, NoStream, Effect]

Convert a Future to a DBIOAction.

Convert a Future to a DBIOAction.

Attributes

Source
DBIOAction.scala
def seq[E <: Effect](actions: DBIOAction[_, NoStream, E]*): DBIOAction[Unit, NoStream, E]

A simpler version of sequence that takes a number of DBIOActions with any return type as varargs and returns a DBIOAction that performs the individual actions in sequence, returning () in the end.

A simpler version of sequence that takes a number of DBIOActions with any return type as varargs and returns a DBIOAction that performs the individual actions in sequence, returning () in the end.

Attributes

Source
DBIOAction.scala
def sequence[R, M <: (IterableOnce), E <: Effect](in: M[DBIOAction[R, NoStream, E]])(implicit cbf: Factory[R, M[R]]): DBIOAction[M[R], NoStream, E]

Transform a TraversableOnce[ DBIO[R] ] into a DBIO[ TraversableOnce[R] ].

Transform a TraversableOnce[ DBIO[R] ] into a DBIO[ TraversableOnce[R] ].

Attributes

Source
DBIOAction.scala
def sequenceOption[R, E <: Effect](in: Option[DBIOAction[R, NoStream, E]]): DBIOAction[Option[R], NoStream, E]

Transform a Option[ DBIO[R] ] into a DBIO[ Option[R] ].

Transform a Option[ DBIO[R] ] into a DBIO[ Option[R] ].

Attributes

Source
DBIOAction.scala
def successful[R](v: R): DBIOAction[R, NoStream, Effect]

Lift a constant value to a DBIOAction.

Lift a constant value to a DBIOAction.

Attributes

Source
DBIOAction.scala
def traverse[A, B, M <: (IterableOnce)](in: M[A])(f: A => DBIO[B])(implicit cbf: Factory[B, M[B]]): DBIO[M[B]]

Transforms an IterableOnce[A] into a DBIO[IterableOnce[B]] using the provided function A => DBIO[B].

Transforms an IterableOnce[A] into a DBIO[IterableOnce[B]] using the provided function A => DBIO[B].

Attributes

Source
DBIOAction.scala

A no-op DBIOAction. A cached value of DBIOAction.successful(()) to avoid allocations.

A no-op DBIOAction. A cached value of DBIOAction.successful(()) to avoid allocations.

Attributes

Source
DBIOAction.scala