cql-io-1.1.0: Cassandra CQL client.

Safe HaskellNone
LanguageHaskell2010

Database.CQL.IO.Protocol

Synopsis

Documentation

data Frame Source #

Constructors

Frame !Header !ByteString 

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.