object R2dbcSession
- Source
- R2dbcSession.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- R2dbcSession
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- def withSession[A](system: ActorSystem[_], connectionFactory: ConnectionFactory, fun: Function[R2dbcSession, CompletionStage[A]]): CompletionStage[A]
Provide a custom connectionFactory.
Provide a custom connectionFactory. The config closeCallsExceeding is loaded from the default path.
- def withSession[A](system: ActorSystem[_], connectionFactoryConfigPath: String, fun: Function[R2dbcSession, CompletionStage[A]]): CompletionStage[A]
- def withSession[A](system: ActorSystem[_], fun: Function[R2dbcSession, CompletionStage[A]]): CompletionStage[A]
Runs the passed function in using a R2dbcSession with a new transaction.
Runs the passed function in using a R2dbcSession with a new transaction. The connection is closed and the transaction is committed at the end or rolled back in case of failures.