slick
package slick
- Alphabetic
- Public
- Protected
Package Members
- package ast
Abstract Syntax Tree (AST) for representing queries during compilation
- package basic
Contains the abstract
BasicProfile,BasicBackendand related code. - package cats
- package collection
HList implementation
- package compiler
Slick AST to database query compiler
- package dbio
The
dbiopackage contains the Database I/O Action implementation.The
dbiopackage contains the Database I/O Action implementation. See DBIOAction for details. - package jdbc
Contains the abstract
JdbcProfileand related code.Contains the abstract
JdbcProfileand related code. This includes all JDBC-related code, facilities for Plain SQL queries, and JDBC-specific profile components. - package lifted
Lifted embedding: Stable query api based on implicits and overloading lifting Scala code into Slick ASTs
- package memory
- package model
Slick schema model
- package relational
Contains the abstract
RelationalProfileand related code. - package sql
Contains the abstract
SqlProfileand related code. - package util
Helper code for various things.
Helper code for various things. Tuples, Logging, SQL, ...
Type Members
- final case class ControlStatus(availableConnectionSlots: Long, pendingConnectionSlots: Int, availableAdmissionQueueSlots: Long, availableInflightSlots: Long) extends Product with Serializable
- 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 means2 * maxConnections. The effective value is always at leastmaxConnections.- inflightAdmissionTimeout
How long an action may wait to be admitted as in-flight before timing out.
Nonemeans wait indefinitely.- connectionAcquireTimeout
How long an action may wait to acquire a connection before timing out.
Nonemeans wait indefinitely.
- 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 examplecats.effect.IOorscala.concurrent.Future), andS[_]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. - 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.
- 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. - class SlickTreeException extends SlickException
A SlickException that contains a
Dumpablewith more details.
Value Members
- object ControlsConfig extends Serializable

edit this text on github
Scala Language-Integrated Connection Kit
This is the API documentation for the Slick database library. It should be used as an additional resource to the user manual.
Further documentation for Slick can be found on the documentation pages.
To the slick package list...