Safe Haskell | None |
---|---|
Language | Haskell2010 |
Database.Beam.Backend.URI
Description
Convenience methods for constructing backend-agnostic applications
Documentation
data BeamOpenURIUnsupportedScheme Source #
Constructors
BeamOpenURIUnsupportedScheme String |
data BeamURIOpener c where Source #
Constructors
BeamURIOpener :: MonadBeam syntax be hdl m => c syntax be hdl m -> (URI -> IO (hdl, IO ())) -> BeamURIOpener c |
newtype BeamURIOpeners c where Source #
Constructors
BeamURIOpeners :: Map String (BeamURIOpener c) -> BeamURIOpeners c |
Instances
Semigroup (BeamURIOpeners c) Source # | |
Monoid (BeamURIOpeners c) Source # | |
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 #
openDbConnection :: forall c. BeamURIOpeners c -> String -> IO (OpenedBeamConnection c) Source #
findURIOpener :: BeamURIOpeners c -> String -> IO (URI, BeamURIOpener c) Source #