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