object SlickWithTryResult
Methods for interacting with relational databases using Slick and pekko-stream.
- Source
- SlickWithTryResult.scala
- Alphabetic
- By Inheritance
- SlickWithTryResult
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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 clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def flowTry[T](parallelism: Int, toStatement: (T) => DBIO[Int])(implicit session: SlickSession): Flow[T, Try[Int], NotUsed]
Scala API: creates a Flow that takes a stream of elements of type T, transforms each element to a SQL statement using the specified function, and then executes those statements against the specified Slick database.
Scala API: creates a Flow that takes a stream of elements of type T, transforms each element to a SQL statement using the specified function, and then executes those statements against the specified Slick database. It return Success[Int] or Failure[Throwable] if there was an exception during the execution.
- parallelism
How many parallel asynchronous streams should be used to send statements to the database. Use a value of 1 for sequential execution.
- toStatement
A function to produce the SQL statement to execute based on the current element.
- session
The database session to use.
- def flowTry[T](toStatement: (T) => DBIO[Int])(implicit session: SlickSession): Flow[T, Try[Int], NotUsed]
Scala API: creates a Flow that takes a stream of elements of type T, transforms each element to a SQL statement using the specified function, and then try executing those statements against the specified Slick database.
Scala API: creates a Flow that takes a stream of elements of type T, transforms each element to a SQL statement using the specified function, and then try executing those statements against the specified Slick database. It return Success[Int] or Failure[Throwable] if there was an exception during the execution.
- toStatement
A function to produce the SQL statement to execute based on the current element.
- session
The database session to use.
- def flowTryWithPassThrough[T, R](parallelism: Int, toStatement: (T) => DBIO[R])(implicit session: SlickSession): Flow[T, Try[R], NotUsed]
Scala API: creates a Flow that takes a stream of elements of type T, transforms each element to a SQL statement using the specified function, then executes those statements against the specified Slick database and returns the statement result type Success[R] or Failure[Throwable] if there is an exception.
Scala API: creates a Flow that takes a stream of elements of type T, transforms each element to a SQL statement using the specified function, then executes those statements against the specified Slick database and returns the statement result type Success[R] or Failure[Throwable] if there is an exception.
- parallelism
How many parallel asynchronous streams should be used to send statements to the database. Use a value of 1 for sequential execution.
- toStatement
A function to produce the SQL statement to execute based on the current element.
- session
The database session to use.
- def flowTryWithPassThrough[T, R](toStatement: (T) => DBIO[R])(implicit session: SlickSession): Flow[T, Try[R], NotUsed]
Scala API: creates a Flow that takes a stream of elements of type T, transforms each element to a SQL statement using the specified function, then executes those statements against the specified Slick database and returns the statement result type Success[R] or Failure[Throwable] if there is an exception.
Scala API: creates a Flow that takes a stream of elements of type T, transforms each element to a SQL statement using the specified function, then executes those statements against the specified Slick database and returns the statement result type Success[R] or Failure[Throwable] if there is an exception.
- toStatement
A function to produce the SQL statement to execute based on the current element.
- session
The database session to use.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- 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()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def sinkTry[T](parallelism: Int, toStatement: (T) => DBIO[Int])(implicit session: SlickSession): Sink[T, Future[Try[Int]]]
Scala API: creates a Sink that takes a stream of elements of type T, transforms each element to a SQL statement using the specified function, and then executes those statements against the specified Slick database.
Scala API: creates a Sink that takes a stream of elements of type T, transforms each element to a SQL statement using the specified function, and then executes those statements against the specified Slick database.
- parallelism
How many parallel asynchronous streams should be used to send statements to the database. Use a value of 1 for sequential execution.
- toStatement
A function to produce the SQL statement to execute based on the current element.
- session
The database session to use.
- def sinkTry[T](toStatement: (T) => DBIO[Int])(implicit session: SlickSession): Sink[T, Future[Try[Int]]]
Scala API: creates a Sink that takes a stream of elements of type T, transforms each element to a SQL statement using the specified function, and then executes those statements against the specified Slick database.
Scala API: creates a Sink that takes a stream of elements of type T, transforms each element to a SQL statement using the specified function, and then executes those statements against the specified Slick database.
- toStatement
A function to produce the SQL statement to execute based on the current element.
- session
The database session to use.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()