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
- final case class NoConnectionAvailable() extends SQLTransientException with Product with Serializable
- final 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: Iterable[A], profile: Profile)(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 action will run as a single big database transaction. If the execution of the transaction results in deadlocks, you should order
values
according to some consistent order.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
java.lang.IllegalArgumentException
ifstatement
contains"IGNORE_ROW_ON_DUPKEY_INDEX"
(See UpsertTestOracle for details.)
- def bulkOperation_[A](statement: String, values: Iterable[A], profile: Profile)(setParams: (PositionedParameters) => (A) => Unit)(implicit loggingContext: ErrorLoggingContext): DBIOAction[Unit, NoStream, All]
Same as bulkOperation except that no update counts are returned.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def createDatabase(config: DbConfig, numThreads: PositiveInt, metrics: Option[DbQueueMetrics] = None, logQueryCost: Option[QueryCostMonitoringConfig] = None, scheduler: Option[ScheduledExecutorService], 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() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- val healthName: String
- 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() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def profile(config: DbConfig): Profile
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toInClauses[T](field: String, values: NonEmpty[Seq[T]], maxValuesInSqlList: PositiveNumeric[Int])(implicit f: SetParameter[T]): Iterable[(Seq[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: NonEmpty[Seq[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