oriana.DBSinkSettings.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of oriana_2.12 Show documentation
Show all versions of oriana_2.12 Show documentation
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)
}