object DbStorage
- Alphabetic
- By Inheritance
- DbStorage
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- class DbEitherTRight[A] extends AnyRef
- sealed trait DbLockSupport extends Product with Serializable
Indicate if the Db profile supports DB locks.
- class DbStorageCreationException extends RuntimeException
- case class PassiveInstanceException(reason: String) extends RuntimeException with Product with Serializable
- sealed trait Profile extends Product with Serializable with PrettyPrinting
- final case class RetryConfig(retryLogLevel: Level, retryWaitingTime: Duration, maxRetries: Int) extends Product with Serializable
- final class SQLActionBuilderChain extends AnyVal
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def bulkOperation[A](statement: String, values: Seq[A], profile: Profile, useTransactionForOracle: Boolean = false)(setParams: (PositionedParameters) => (A) => Unit)(implicit loggingContext: ErrorLoggingContext): DBIOAction[Array[Int], NoStream, All]
Construct a bulk operation (e.g., insertion, deletion).
Construct a bulk operation (e.g., insertion, deletion). The operation must not return a result set!
The returned update counts are merely lower bounds to the number of affected rows or SUCCESS_NO_INFO, because
Statement.executeBatch
reports partial execution of a batch as aBatchUpdateException
with partial update counts therein and those update counts are not taken into consideration.This operation is idempotent if the statement is idempotent for each value.
- Exceptions thrown
if the database is Oracle and one of the following holds:
statement
contains"IGNORE_ROW_ON_DUPKEY_INDEX"
- or
statements
containsmerge
and useTransactionForOracle isfalse
. (See UpsertTestOracle for details.)
- def bulkOperation_[A](statement: String, values: Seq[A], profile: Profile, useTransactionForOracle: Boolean = false)(setParams: (PositionedParameters) => (A) => Unit)(implicit loggingContext: ErrorLoggingContext): DBIOAction[Unit, NoStream, All]
Same as bulkOperation except that no update counts are returned.
Same as bulkOperation except that no update counts are returned. Can also be used if
statement
contains"IGNORE_ROW_ON_DUPKEY_INDEX"
. - def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def createDatabase(config: DbConfig, forParticipant: Boolean, withWriteConnectionPool: Boolean, withMainConnection: Boolean, metrics: Option[DbQueueMetrics] = None, logQueryCost: Option[QueryCostMonitoringConfig] = None, forMigration: Boolean = false, retryConfig: RetryConfig = DbStorage.RetryConfig.failFast)(loggerFactory: NamedLoggerFactory)(implicit closeContext: CloseContext): EitherT[UnlessShutdown, String, slick.jdbc.JdbcBackend.Database]
- def dbEitherT[A]: DbEitherTRight[A]
- def dbEitherT[A, B](value: DBIO[Either[A, B]]): EitherT[DBIO, A, B]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def profile(config: DbConfig): Profile
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toInClauses[T](field: String, values: NonEmptyList[T], maxValuesInSqlList: PositiveNumeric[Int])(implicit f: SetParameter[T]): Iterable[(List[T], SQLActionBuilder)]
Construct an in clause for a given field.
Construct an in clause for a given field. If there are too many elements, splits the clause into several ones. We need to split into several terms because Oracle imposes a limit on the number of elements in an in-clause (currently: 1000).
- returns
An iterable of the grouped values and the in clause for the grouped values
- Annotations
- @nowarn()
- def toInClauses_[T](field: String, values: NonEmptyList[T], maxValuesSqlInListSize: PositiveNumeric[Int])(implicit f: SetParameter[T]): Iterable[SQLActionBuilder]
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- object DbAction
- object Implicits
- object Profile extends Serializable
- object RetryConfig extends Serializable
- object SQLActionBuilderChain