scottish-0.1.0.1: scotty with batteries included

Safe HaskellNone

Web.Scottish.Database

Description

Database connection pool as an easy part of Scottish app configuration.

Documentation

class HasDatabaseConnectionPool conn config | config -> conn whereSource

Methods

poolLens :: ALens' config (Pool conn)Source

Instances

getPool :: (MonadTrans t, HasDatabaseConnectionPool conn config) => t (Scottish config s s') (Pool conn)Source

setPoolSource

Arguments

:: HasDatabaseConnectionPool conn config 
=> IO (Pool conn)

database connection pool creator in IO monad

-> ScottishM e config s s' ()