Packages

object Slick

Methods for interacting with relational databases using Slick and akka-stream.

Source
Slick.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Slick
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  9. def flow[T](parallelism: Int, toStatement: (T) => DBIO[Int])(implicit session: SlickSession): Flow[T, 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.

    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.

  10. def flow[T](toStatement: (T) => DBIO[Int])(implicit session: SlickSession): Flow[T, 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.

    toStatement

    A function to produce the SQL statement to execute based on the current element.

    session

    The database session to use.

  11. def flowWithPassThrough[T, R](parallelism: Int, toStatement: (T) => DBIO[R])(implicit session: SlickSession): Flow[T, 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 R.

    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 R.

    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.

  12. def flowWithPassThrough[T, R](toStatement: (T) => DBIO[R])(implicit session: SlickSession): Flow[T, 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 R.

    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 R.

    toStatement

    A function to produce the SQL statement to execute based on the current element.

    session

    The database session to use.

  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. def sink[T](parallelism: Int, toStatement: (T) => DBIO[Int])(implicit session: SlickSession): Sink[T, Future[Done]]

    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.

  20. def sink[T](toStatement: (T) => DBIO[Int])(implicit session: SlickSession): Sink[T, Future[Done]]

    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.

  21. def source[T](streamingQuery: StreamingDBIO[Seq[T], T])(implicit session: SlickSession): Source[T, NotUsed]

    Scala API: creates a Source[T, NotUsed] that performs the specified query against the (implicitly) specified Slick database and streams the results.

    Scala API: creates a Source[T, NotUsed] that performs the specified query against the (implicitly) specified Slick database and streams the results. This works for both "typed" Slick queries and "plain SQL" queries.

    streamingQuery

    The Slick query to execute, which can be either a "typed" query or a "plain SQL" query produced by one of the Slick "sql..." String interpolators

    session

    The database session to use.

  22. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped