slick.dbio
The dbio package contains the Database I/O Action implementation.
See DBIOAction for details.
Attributes
Members list
Type members
Classlikes
The base trait for the context object passed to synchronous database actions by the execution engine.
The base trait for the context object passed to synchronous database actions by the execution engine.
Attributes
- Source:
- DBIOAction.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
A DBIOAction that represents a seq or andThen operation for sequencing in the DBIOAction
monad. Unlike SequenceAction it only keeps the last result.
A DBIOAction that represents a seq or andThen operation for sequencing in the DBIOAction
monad. Unlike SequenceAction it only keeps the last result.
Attributes
- Source:
- DBIOAction.scala
- Graph
- Supertypes
A DBIOAction that represents an asTry operation.
A DBIOAction that represents an asTry operation.
Attributes
- Source:
- DBIOAction.scala
- Graph
- Supertypes
A DBIOAction that represents a cleanUp operation for sequencing in the DBIOAction monad.
A DBIOAction that represents a cleanUp operation for sequencing in the DBIOAction monad.
Attributes
- Source:
- DBIOAction.scala
- Graph
- Supertypes
A Database I/O Action that can be executed on a database. The DBIOAction type allows a
separation of execution logic and resource usage management logic from composition logic.
DBIOActions can be composed with methods such as andThen, andFinally and flatMap.
Individual parts of a composite DBIOAction are always executed serially on a single database,
but possibly in different database sessions, unless the session is pinned either explicitly
(using withPinnedSession) or implicitly (e.g. through a transaction).
A Database I/O Action that can be executed on a database. The DBIOAction type allows a
separation of execution logic and resource usage management logic from composition logic.
DBIOActions can be composed with methods such as andThen, andFinally and flatMap.
Individual parts of a composite DBIOAction are always executed serially on a single database,
but possibly in different database sessions, unless the session is pinned either explicitly
(using withPinnedSession) or implicitly (e.g. through a transaction).
The actual implementation base type for all Actions is DBIOAction. StreamingDBIO and
DBIO are type aliases which discard the effect type (and the streaming result type in the
latter case) to make DBIOAction types easier to write when these features are not needed. All
primitive DBIOActions and all DBIOActions produced by the standard combinators in Slick have
correct Effect types and are streaming (if possible).
Attributes
- E
The DBIOAction's effect type, e.g.
Effect.Read with Effect.Write. When composing actions, the correct combined effect type will be inferred. Effects can be used in user code, e.g. to automatically direct all read-only Actions to a slave database and write Actions to the master copy.- R
The result type when executing the DBIOAction and fully materializing the result.
- S
An encoding of the result type for streaming results. If this action is capable of streaming, it is
Streaming[T]for an element typeT. For non-streaming DBIOActions it isNoStream.- Companion:
- object
- Source:
- DBIOAction.scala
- Graph
- Supertypes
- Known subtypes
- class MutatingResultAction[T]class SimpleJdbcProfileAction[R]class InsertOrUpdateActionclass InsertQueryActionclass MultiInsertActionclass InsertOrUpdateAllActionclass SingleInsertActionclass FailureActionclass SuccessAction[R]class SimpleJdbcAction[R]class SimpleMemoryAction[R]class FailedAction[E]class FutureAction[R]
Attributes
- Companion:
- trait
- Source:
- DBIOAction.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- DBIOAction.type
A DBIOAction that represents a database operation. Concrete implementations are backend-specific.
A DBIOAction that represents a database operation. Concrete implementations are backend-specific.
Attributes
- Source:
- DBIOAction.scala
- Graph
- Supertypes
- Known subtypes
- class MutatingResultAction[T]class SimpleJdbcProfileAction[R]class InsertOrUpdateActionclass InsertQueryActionclass MultiInsertActionclass InsertOrUpdateAllActionclass SingleInsertActionclass FailureActionclass SuccessAction[R]class SimpleJdbcAction[R]class SimpleMemoryAction[R]
A phantom type for annotating DBIOActions with specific effects (e.g. Write or
Transactional). Effects can be composed through intersection types (e.g.
Write with Transactional. The standard Slick back-ends do not restrict the evaluation of
actions based on effects but they can be used in user-level code (e.g. for ensuring that all
writes go to a master database but reads can also be performed by a slave).
A phantom type for annotating DBIOActions with specific effects (e.g. Write or
Transactional). Effects can be composed through intersection types (e.g.
Write with Transactional. The standard Slick back-ends do not restrict the evaluation of
actions based on effects but they can be used in user-level code (e.g. for ensuring that all
writes go to a master database but reads can also be performed by a slave).
Attributes
- Companion:
- object
- Source:
- Effect.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Companion:
- trait
- Source:
- Effect.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- Effect.type
A DBIOAction that represents a failed operation.
A DBIOAction that represents a failed operation.
Attributes
- Source:
- DBIOAction.scala
- Graph
- Supertypes
A DBIOAction that fails.
A DBIOAction that fails.
Attributes
- Source:
- DBIOAction.scala
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalstrait SynchronousDatabaseAction[Nothing, NoStream, BasicActionContext, BasicStreamingActionContext, Effect]trait Dumpableclass Objecttrait Matchableclass Any
A DBIOAction that represents a flatMap operation for sequencing in the DBIOAction monad.
A DBIOAction that represents a flatMap operation for sequencing in the DBIOAction monad.
Attributes
- Source:
- DBIOAction.scala
- Graph
- Supertypes
An asynchronous DBIOAction that returns the result of a Future.
An asynchronous DBIOAction that returns the result of a Future.
Attributes
- Source:
- DBIOAction.scala
- Graph
- Supertypes
A DBIOAction that attaches a name for logging purposes to another action.
A DBIOAction that attaches a name for logging purposes to another action.
Attributes
- Source:
- DBIOAction.scala
- Graph
- Supertypes
A phantom type used as the streaming result type for DBIOActions that do not support streaming.
Note that this is a supertype of Streaming (and it is used in covariant position),
so that any streaming action can be used where a non-streaming action is expected.
A phantom type used as the streaming result type for DBIOActions that do not support streaming.
Note that this is a supertype of Streaming (and it is used in covariant position),
so that any streaming action can be used where a non-streaming action is expected.
Attributes
- Source:
- NoStream.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- trait Streaming[T]
A DBIOAction that represents a sequence or operation for sequencing in the DBIOAction monad.
A DBIOAction that represents a sequence or operation for sequencing in the DBIOAction monad.
Attributes
- Source:
- DBIOAction.scala
- Graph
- Supertypes
A phantom type used as the streaming result type for DBIOActions that do support streaming.
A phantom type used as the streaming result type for DBIOActions that do support streaming.
Attributes
- Source:
- NoStream.scala
- Graph
- Supertypes
An ActionContext with extra functionality required for streaming DBIOActions.
An ActionContext with extra functionality required for streaming DBIOActions.
Attributes
- Source:
- DBIOAction.scala
- Graph
- Supertypes
- Known subtypes
A DBIOAction that returns a constant value.
A DBIOAction that returns a constant value.
Attributes
- Source:
- DBIOAction.scala
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalstrait SynchronousDatabaseAction[R, NoStream, BasicActionContext, BasicStreamingActionContext, Effect]trait Dumpableclass Objecttrait Matchableclass Any
A synchronous database action provides a function from an ActionContext to the result
type. BasicBackend.DatabaseDef.run supports this kind of action out of the box
through BasicBackend.DatabaseDef.runSynchronousDatabaseAction so that run does not
need to be extended if all primitive database actions can be expressed in this way. These
actions also implement construction-time fusion for the andFinally, andThen, asTry,
failed, withPinnedSession and zip operations.
A synchronous database action provides a function from an ActionContext to the result
type. BasicBackend.DatabaseDef.run supports this kind of action out of the box
through BasicBackend.DatabaseDef.runSynchronousDatabaseAction so that run does not
need to be extended if all primitive database actions can be expressed in this way. These
actions also implement construction-time fusion for the andFinally, andThen, asTry,
failed, withPinnedSession and zip operations.
The execution engine ensures that an ActionContext is never used concurrently and that all state changes performed by one invocation of a SynchronousDatabaseAction are visible to the next invocation of the same or a different SynchronousDatabaseAction.
Attributes
- Companion:
- object
- Source:
- DBIOAction.scala
- Graph
- Supertypes
- Known subtypes
- class FailureActionclass SuccessAction[R]class MutatingResultAction[T]class SimpleJdbcProfileAction[R]class InsertOrUpdateActionclass InsertQueryActionclass MultiInsertActionclass InsertOrUpdateAllActionclass SingleInsertActionclass SimpleJdbcAction[R]class SimpleMemoryAction[R]
- Self type
Attributes
- Companion:
- trait
- Source:
- DBIOAction.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
Types
Simplified type for a DBIOAction without streaming or effect tracking
Simplified type for a DBIOAction without streaming or effect tracking
Attributes
- Source:
- package.scala
Simplified type for a streaming DBIOAction without effect tracking
Value members
Concrete fields
Attributes
- Source:
- package.scala