| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Arbiter.Hasql.Compat
Description
Compatibility layer for hasql API differences.
All version-specific code lives here. The rest of arbiter-hasql imports from this module and never uses CPP directly.
Synopsis
- runSQL :: MonadUnliftIO m => Connection -> ByteString -> m ()
- hasqlSettings :: ByteString -> HasqlSettings
- type HasqlSettings = Settings
Documentation
runSQL :: MonadUnliftIO m => Connection -> ByteString -> m () Source #
Run a simple SQL command on a hasql connection (e.g., BEGIN, COMMIT).
hasqlSettings :: ByteString -> HasqlSettings Source #
Convert a connection string ByteString to hasql settings.
type HasqlSettings = Settings Source #