beam-core-0.10.0.0: Type-safe, feature-complete SQL query and manipulation interface for Haskell
Safe HaskellSafe-Inferred
LanguageHaskell2010

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 

data OpenedBeamConnection c where Source #

Constructors

OpenedBeamConnection 

Fields

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 #