All Downloads are FREE. Search and download functionalities are using the official Maven repository.

oriana.DBSinkSettings.scala Maven / Gradle / Ivy

Go to download

Oriana is a small layer on top of slick that allows easier access to the database. It allows peudo-syntactic methods to inject a database context into arbitrary code, and simplifies deployment, updates and initialization.

The newest version!
package oriana

/**
  * Options modifying the behaviour of a database sink
  * @param cancelOnError should the sink cancel the stream on an error? The default will always cancel
  * @param parallelism limit of parallel items to process. Default is single-transaction
  */
case class DBSinkSettings(cancelOnError: Throwable => Boolean = _ => true, parallelism: Int = 1) {
  require(parallelism >= 1)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy