beam-core-0.7.2.1: 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 -> (URI -> IO (hdl, IO ())) -> BeamURIOpener c 

data OpenedBeamConnection c where Source #

Constructors

OpenedBeamConnection :: MonadBeam syntax be hdl m => {..} -> OpenedBeamConnection c 

Fields

mkUriOpener :: MonadBeam syntax be hdl m => String -> (URI -> IO (hdl, IO ())) -> 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 #