Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Frame = Frame !Header !ByteString
- parse :: (Tuple a, Tuple b, MonadThrow m) => Compression -> Frame -> m (Response k a b)
- serialise :: (Tuple a, MonadThrow m) => Version -> Compression -> Request k a b -> Int -> m ByteString
- quoted :: Text -> Text
Documentation
parse :: (Tuple a, Tuple b, MonadThrow m) => Compression -> Frame -> m (Response k a b) Source #
Parse a CQL protocol frame into a Response
.
serialise :: (Tuple a, MonadThrow m) => Version -> Compression -> Request k a b -> Int -> m ByteString Source #
Serialise a Request
into a complete CQL protocol frame,
including header, length and body.