Safe Haskell | None |
---|---|
Language | Haskell2010 |
Hasql.Pool
Documentation
acquire :: Int -> Settings -> IO Pool Source #
Given the pool-size and connection settings create a connection-pool.
data UsageError Source #
A union over the connection establishment error and the session error.
Constructors
ConnectionUsageError ConnectionError | |
SessionUsageError QueryError | |
PoolIsReleasedUsageError |
Instances
Eq UsageError Source # | |
Defined in Hasql.Pool | |
Show UsageError Source # | |
Defined in Hasql.Pool Methods showsPrec :: Int -> UsageError -> ShowS # show :: UsageError -> String # showList :: [UsageError] -> ShowS # | |
Exception UsageError Source # | |
Defined in Hasql.Pool Methods toException :: UsageError -> SomeException # fromException :: SomeException -> Maybe UsageError # displayException :: UsageError -> String # |