cql-io-1.1.0: Cassandra CQL client.

Safe HaskellNone
LanguageHaskell2010

Database.CQL.IO.Connection

Contents

Synopsis

Documentation

data Connection Source #

A connection to a Host in a Cassandra cluster.

Instances
Eq Connection Source # 
Instance details

Defined in Database.CQL.IO.Connection

Show Connection Source # 
Instance details

Defined in Database.CQL.IO.Connection

data ConnId Source #

Instances
Eq ConnId Source # 
Instance details

Defined in Database.CQL.IO.Connection.Settings

Methods

(==) :: ConnId -> ConnId -> Bool #

(/=) :: ConnId -> ConnId -> Bool #

Ord ConnId Source # 
Instance details

Defined in Database.CQL.IO.Connection.Settings

Hashable ConnId Source # 
Instance details

Defined in Database.CQL.IO.Connection.Settings

Methods

hashWithSalt :: Int -> ConnId -> Int #

hash :: ConnId -> Int #

Lifecycle

connect :: MonadIO m => ConnectionSettings -> TimeoutManager -> Version -> Logger -> Host -> m Connection Source #

Establish and initialise a new connection to a Cassandra host.

canConnect :: MonadIO m => Host -> m Bool Source #

Check the connectivity of a Cassandra host on a new connection.

Requests

request :: (Tuple a, Tuple b) => Connection -> Request k a b -> IO (Response k a b) Source #

type Raw a = a () () () Source #

Queries

query :: (Tuple a, Tuple b, MonadIO m) => Connection -> Consistency -> QueryString k a b -> a -> m [b] Source #

defQueryParams :: Consistency -> a -> QueryParams a Source #

Construct default QueryParams for the given consistency and bound values. In particular, no page size, paging state or serial consistency will be set.

Events

Re-exports