JdbcActionExtensionMethods

slick.jdbc.JdbcActionComponent.JdbcActionExtensionMethods
class JdbcActionExtensionMethods[E <: Effect, R, S <: NoStream](a: DBIOAction[R, S, E])

Attributes

Source:
JdbcActionComponent.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

Run this Action transactionally. This does not guarantee failures to be atomic in the presence of error handling combinators. If multiple transactionally combinators are nested, only the outermost one will be backed by an actual database transaction. Depending on the outcome of running the Action it surrounds, the transaction is committed if the wrapped Action succeeds, or rolled back if the wrapped Action fails. When called on a slick.dbio.SynchronousDatabaseAction, this combinator gets fused into the action.

Run this Action transactionally. This does not guarantee failures to be atomic in the presence of error handling combinators. If multiple transactionally combinators are nested, only the outermost one will be backed by an actual database transaction. Depending on the outcome of running the Action it surrounds, the transaction is committed if the wrapped Action succeeds, or rolled back if the wrapped Action fails. When called on a slick.dbio.SynchronousDatabaseAction, this combinator gets fused into the action.

Attributes

Source:
JdbcActionComponent.scala
def withStatementParameters(rsType: ResultSetType, rsConcurrency: ResultSetConcurrency, rsHoldability: ResultSetHoldability, statementInit: Statement => Unit, fetchSize: Int): DBIOAction[R, S, E]

Run this Action with the given statement parameters. Any unset parameter will use the current value. The following parameters can be set:

Run this Action with the given statement parameters. Any unset parameter will use the current value. The following parameters can be set:

Attributes

fetchSize

The fetch size for all statements or 0 for the default.

rsConcurrency

The JDBC ResultSetConcurrency

rsHoldability

The JDBC ResultSetHoldability

rsType

The JDBC ResultSetType

statementInit

A function which is run on every Statement or PreparedStatement directly after creating it. This can be used to set additional statement parameters (e.g. setQueryTimeout). When multiple withStatementParameters Actions are nested, all init functions are run, starting with the outermost one.

Source:
JdbcActionComponent.scala

Run this Action with the specified transaction isolation level. This should be used around the outermost transactionally Action. The semantics of using it inside a transaction are database-dependent. It does not create a transaction by itself but it pins the session.

Run this Action with the specified transaction isolation level. This should be used around the outermost transactionally Action. The semantics of using it inside a transaction are database-dependent. It does not create a transaction by itself but it pins the session.

Attributes

Source:
JdbcActionComponent.scala