beam-core-0.9.2.1: Type-safe, feature-complete SQL query and manipulation interface for Haskell
Safe Haskell None
Language Haskell2010

Database.Beam.Backend.URI

Description

Convenience methods for constructing backend-agnostic applications

Documentation

data BeamURIOpener c where Source #

Constructors

BeamURIOpener :: c be hdl m -> ( forall a. hdl -> m a -> IO a) -> ( URI -> IO (hdl, IO ())) -> BeamURIOpener c

mkUriOpener :: ( forall a. hdl -> m a -> IO a) -> String -> ( URI -> IO (hdl, IO ())) -> c be hdl m -> BeamURIOpeners c Source #

withDbFromUri :: forall c a. BeamURIOpeners c -> String -> ( forall be hdl m. ( forall r. hdl -> m r -> IO r) -> c be hdl m -> m a) -> IO a Source #

withDbConnection :: forall c a. BeamURIOpeners c -> String -> ( forall be hdl m. ( forall r. hdl -> m r -> IO r) -> c be hdl m -> hdl -> IO a) -> IO a Source #