beam-core-0.10.4.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 :: Type -> Type -> (Type -> Type) -> Type) where Source #

Constructors

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

newtype BeamURIOpeners (c :: Type -> Type -> (Type -> Type) -> Type) where Source #

Constructors

BeamURIOpeners :: forall (c :: Type -> Type -> (Type -> Type) -> Type). Map String (BeamURIOpener c) -> BeamURIOpeners c 

data OpenedBeamConnection (c :: Type -> Type -> (Type -> Type) -> Type) 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 :: BeamURIOpeners c -> String -> (forall be hdl (m :: Type -> Type). (forall r. hdl -> m r -> IO r) -> c be hdl m -> m a) -> IO a Source #

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

findURIOpener :: forall (c :: Type -> Type -> (Type -> Type) -> Type). BeamURIOpeners c -> String -> IO (URI, BeamURIOpener c) Source #