Safe Haskell | None |
---|---|
Language | Haskell2010 |
Convenience methods for constructing backend-agnostic applications
Documentation
data BeamResourceNotFound Source #
Instances
Show BeamResourceNotFound Source # | |
Defined in Database.Beam.Backend.URI showsPrec :: Int -> BeamResourceNotFound -> ShowS # show :: BeamResourceNotFound -> String # showList :: [BeamResourceNotFound] -> ShowS # | |
Exception BeamResourceNotFound Source # | |
data BeamOpenURIInvalid Source #
Instances
Show BeamOpenURIInvalid Source # | |
Defined in Database.Beam.Backend.URI showsPrec :: Int -> BeamOpenURIInvalid -> ShowS # show :: BeamOpenURIInvalid -> String # showList :: [BeamOpenURIInvalid] -> ShowS # | |
Exception BeamOpenURIInvalid Source # | |
Defined in Database.Beam.Backend.URI |
data BeamOpenURIUnsupportedScheme Source #
Instances
data BeamURIOpener c where Source #
BeamURIOpener :: c be hdl m -> (forall a. hdl -> m a -> IO a) -> (URI -> IO (hdl, IO ())) -> BeamURIOpener c |
newtype BeamURIOpeners c where Source #
BeamURIOpeners :: Map String (BeamURIOpener c) -> BeamURIOpeners c |
Instances
Semigroup (BeamURIOpeners c) Source # | |
Defined in Database.Beam.Backend.URI (<>) :: BeamURIOpeners c -> BeamURIOpeners c -> BeamURIOpeners c # sconcat :: NonEmpty (BeamURIOpeners c) -> BeamURIOpeners c # stimes :: Integral b => b -> BeamURIOpeners c -> BeamURIOpeners c # | |
Monoid (BeamURIOpeners c) Source # | |
Defined in Database.Beam.Backend.URI mempty :: BeamURIOpeners c # mappend :: BeamURIOpeners c -> BeamURIOpeners c -> BeamURIOpeners c # mconcat :: [BeamURIOpeners c] -> BeamURIOpeners c # |
data OpenedBeamConnection c where Source #
OpenedBeamConnection | |
|
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 #
openDbConnection :: forall c. BeamURIOpeners c -> String -> IO (OpenedBeamConnection c) Source #
findURIOpener :: BeamURIOpeners c -> String -> IO (URI, BeamURIOpener c) Source #