package sql
Ordering
- Alphabetic
Visibility
- Public
- Protected
Type Members
- trait ConnectionPool extends AnyRef
- final case class ConnectionPoolConfig(url: String, properties: Properties, poolSize: Int = 10, queueCapacity: Int = 1000, autoCommit: Boolean = true, retryPolicy: Schedule[Any, Exception, Any] = Schedule.recurs(20) && Schedule.exponential(10.millis)) extends Product with Serializable
Configuration information for the connection pool.
Configuration information for the connection pool.
- url
The JDBC connection string.
- properties
JDBC connection properties (username / password could go here).
- poolSize
The size of the pool.
- queueCapacity
The capacity of the queue for connections. When this size is reached, back pressure will block attempts to add more.
- retryPolicy
The retry policy to use when acquiring connections.
- final case class ConnectionPoolLive(queue: TQueue[QueueItem], available: TRef[List[ResettableConnection]], config: ConnectionPoolConfig) extends ConnectionPool with Product with Serializable
A live concurrent connection pool.
A live concurrent connection pool.
Improvements to make:
- A connection may die. If so, it should be reacquired.
- Someone may try to use a connection forever. If so, we should take it away from them.
- trait ExprSyntaxModule extends AnyRef
- trait Jdbc extends Sql with JdbcInternalModule with SqlDriverLiveModule with ExprSyntaxModule
- trait JdbcInternalModule extends AnyRef
- trait SqlDriverLiveModule extends AnyRef
Value Members
- object ConnectionPool