Safe Haskell | None |
---|
Implementation of a PostgreSQL-based event store.
- run :: Connection -> ByteString -> [SqlValue] -> IO ()
- sourceQuery :: Connection -> ByteString -> [SqlValue] -> Source (ResourceT IO) [SqlValue]
- withTransaction :: Connection -> IO a -> IO a
- data SqlValue
- = SqlByteArray (Maybe ByteString)
- | SqlBlankPaddedString (Maybe ByteString)
- | SqlBool (Maybe Bool)
- | SqlInt16 (Maybe Int16)
- | SqlInt32 (Maybe Int32)
- | SqlInt64 (Maybe Int64)
- | SqlFloating (Maybe Double)
- | SqlVarChar (Maybe Text)
- | SqlText (Maybe Text)
- | SqlDate (Maybe Day)
- | Unmatched (Oid, Maybe ByteString)
Documentation
run :: Connection -> ByteString -> [SqlValue] -> IO ()Source
Execute a query with no result.
sourceQuery :: Connection -> ByteString -> [SqlValue] -> Source (ResourceT IO) [SqlValue]Source
Source for traversing all the results of a PostgreSQL query.
withTransaction :: Connection -> IO a -> IO aSource
Execute an IO action with an active transaction.
Known field types.