cassandra-util-0.16.5: Cassandra Utilities
Safe HaskellSafe-Inferred
LanguageGHC2021

Cassandra.Util

Synopsis

Documentation

initCassandraForService :: CassandraOpts -> String -> Maybe Text -> Maybe Int32 -> Logger -> IO ClientState Source #

Create Cassandra ClientState ("connection") for a service

newtype Writetime a Source #

Read cassandra's writetimes https://docs.datastax.com/en/dse/5.1/cql/cql/cql_using/useWritetime.html as UTCTime values without any loss of precision

Constructors

Writetime 

Instances

Instances details
Functor (Writetime :: Type -> Type) Source # 
Instance details

Defined in Cassandra.Util

Methods

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

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

ToJSON (Writetime a) Source # 
Instance details

Defined in Cassandra.Util

Show (Writetime a) Source # 
Instance details

Defined in Cassandra.Util

Cql (Writetime a) Source # 
Instance details

Defined in Cassandra.Util

Eq (Writetime a) Source # 
Instance details

Defined in Cassandra.Util

Methods

(==) :: Writetime a -> Writetime a -> Bool #

(/=) :: Writetime a -> Writetime a -> Bool #

writetimeToInt64 :: Writetime a -> Int64 Source #

This yields the same int as it is returned by WRITETIME()