Packages

p

slick

package slick

Content Hierarchy
Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Package Members

  1. package ast

    Abstract Syntax Tree (AST) for representing queries during compilation

  2. package basic

    Contains the abstract BasicProfile, BasicBackend and related code.

  3. package cats
  4. package collection

    HList implementation

  5. package compiler

    Slick AST to database query compiler

  6. package dbio

    The dbio package contains the Database I/O Action implementation.

    The dbio package contains the Database I/O Action implementation. See DBIOAction for details.

  7. package jdbc

    Contains the abstract JdbcProfile and related code.

    Contains the abstract JdbcProfile and related code. This includes all JDBC-related code, facilities for Plain SQL queries, and JDBC-specific profile components.

  8. package lifted

    Lifted embedding: Stable query api based on implicits and overloading lifting Scala code into Slick ASTs

  9. package memory
  10. package model

    Slick schema model

  11. package relational

    Contains the abstract RelationalProfile and related code.

  12. package sql

    Contains the abstract SqlProfile and related code.

  13. package util

    Helper code for various things.

    Helper code for various things. Tuples, Logging, SQL, ...

Type Members

  1. final case class ControlStatus(availableConnectionSlots: Long, pendingConnectionSlots: Int, availableAdmissionQueueSlots: Long, availableInflightSlots: Long) extends Product with Serializable
  2. final case class ControlsConfig(maxConnections: Int = 20, queueSize: Int = 1000, maxInflight: Option[Int] = None, inflightAdmissionTimeout: Option[FiniteDuration] = None, connectionAcquireTimeout: Option[FiniteDuration] = None) extends Product with Serializable

    Configuration for concurrency controls (connection pool sizing, queue limits, and timeouts).

    Configuration for concurrency controls (connection pool sizing, queue limits, and timeouts).

    Use slick.DatabaseConfig#withControls to attach a custom config to any database config:

    val config = DatabaseConfig.forConfig[H2Profile]("db")
      .withControls(ControlsConfig(maxConnections = 10, queueSize = 500))
    maxConnections

    Maximum number of concurrent database connections.

    queueSize

    Maximum number of actions waiting for a connection slot before being rejected.

    maxInflight

    Maximum number of actions that may be in-flight at once (i.e. admitted past the queue but not yet holding a connection). Defaults to None, which means 2 * maxConnections. The effective value is always at least maxConnections.

    inflightAdmissionTimeout

    How long an action may wait to be admitted as in-flight before timing out. None means wait indefinitely.

    connectionAcquireTimeout

    How long an action may wait to acquire a connection before timing out. None means wait indefinitely.

  3. trait Database[F[_], S[_]] extends Closeable

    Effect-polymorphic database API.

    Effect-polymorphic database API.

    F[_] is the effect type used for non-streaming execution (for example cats.effect.IO or scala.concurrent.Future), and S[_] is the stream type used for streaming results.

    Concrete wrappers (for example slick.cats.Database, slick.future.Database, slick.zio.Database) delegate to an underlying Slick backend database and adapt it into their effect/stream abstractions.

  4. trait DatabaseConfig extends AnyRef

    Common interface for database configuration objects that can open a database connection.

    Common interface for database configuration objects that can open a database connection.

    Both slick.basic.BasicDatabaseConfig (Typesafe Config-based) and slick.jdbc.JdbcDatabaseConfig (programmatic JDBC) implement this trait, allowing integration facades to accept either with a single method.

  5. class SlickException extends RuntimeException

    All Exceptions that are thrown directly by Slick are of type SlickException.

    All Exceptions that are thrown directly by Slick are of type SlickException. Other Exceptions originating in non-Slick code are generally not wrapped but passed on directly.

  6. class SlickTreeException extends SlickException

    A SlickException that contains a Dumpable with more details.

Value Members

  1. object ControlsConfig extends Serializable

Ungrouped