beam-core-0.6.0.0: Type-safe, feature-complete SQL query and manipulation interface for Haskell

Safe HaskellNone
LanguageHaskell2010

Database.Beam.Backend.URI

Description

Convenience methods for constructing backend-agnostic applications

Documentation

data BeamURIOpener c where Source #

Constructors

BeamURIOpener :: MonadBeam syntax be hdl m => c syntax be hdl m -> (forall a. URI -> (hdl -> IO a) -> IO a) -> BeamURIOpener c 

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

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

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