| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Arbiter.Hasql.Compat
Description
Every hasql version difference that arbiter-hasql depends on.
Synopsis
- runSQL :: MonadUnliftIO m => Connection -> ByteString -> m ()
- connectionInTransaction :: Connection -> IO Bool
- withHasqlLibPQConnection :: Connection -> (Connection -> IO a) -> IO a
- hasqlSettings :: ByteString -> HasqlSettings
- type HasqlSettings = Settings
Documentation
Source #runSQL :: MonadUnliftIO m => Connection -> ByteString -> m ()
Run a bare SQL command, such as BEGIN or COMMIT.
Source #connectionInTransaction :: Connection -> IO Bool
Whether the connection is in a transaction block, valid or aborted.
Source #withHasqlLibPQConnection :: Connection -> (Connection -> IO a) -> IO a
Run an action with the underlying libpq connection, for LISTEN/NOTIFY.
Source #hasqlSettings :: ByteString -> HasqlSettings
Convert a connection string ByteString to hasql settings.
Source #type HasqlSettings = Settings
Connection settings, whose representation follows the hasql version.