cql-io-1.1.0: Cassandra CQL client.

Safe HaskellNone
LanguageHaskell2010

Database.CQL.IO.Batch

Synopsis

Documentation

data BatchM a Source #

Batch construction monad.

Instances
Monad BatchM Source # 
Instance details

Defined in Database.CQL.IO.Batch

Methods

(>>=) :: BatchM a -> (a -> BatchM b) -> BatchM b #

(>>) :: BatchM a -> BatchM b -> BatchM b #

return :: a -> BatchM a #

fail :: String -> BatchM a #

Functor BatchM Source # 
Instance details

Defined in Database.CQL.IO.Batch

Methods

fmap :: (a -> b) -> BatchM a -> BatchM b #

(<$) :: a -> BatchM b -> BatchM a #

Applicative BatchM Source # 
Instance details

Defined in Database.CQL.IO.Batch

Methods

pure :: a -> BatchM a #

(<*>) :: BatchM (a -> b) -> BatchM a -> BatchM b #

liftA2 :: (a -> b -> c) -> BatchM a -> BatchM b -> BatchM c #

(*>) :: BatchM a -> BatchM b -> BatchM b #

(<*) :: BatchM a -> BatchM b -> BatchM a #

batch :: BatchM a -> Client () Source #

Execute the complete Batch statement.

addQuery :: (Show a, Tuple a, Tuple b) => QueryString W a b -> a -> BatchM () Source #

Add a query to this batch.

addPrepQuery :: (Show a, Tuple a, Tuple b) => PrepQuery W a b -> a -> BatchM () Source #

Add a prepared query to this batch.

setType :: BatchType -> BatchM () Source #

Set the type of this batch.

setConsistency :: Consistency -> BatchM () Source #

Set Batch consistency level.

setSerialConsistency :: SerialConsistency -> BatchM () Source #

Set Batch serial consistency.