Packages

p

zio

sql

package sql

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Type Members

  1. trait ConnectionPool extends AnyRef
  2. 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.

  3. 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.
  4. trait ExprSyntaxModule extends AnyRef
  5. trait Jdbc extends Sql with JdbcInternalModule with SqlDriverLiveModule with ExprSyntaxModule
  6. trait JdbcInternalModule extends AnyRef
  7. trait SqlDriverLiveModule extends AnyRef

Value Members

  1. object ConnectionPool

Ungrouped