| Safe Haskell | None | 
|---|---|
| Language | GHC2021 | 
Cassandra.Util
Synopsis
- defInitCassandra :: CassandraOpts -> Logger -> IO ClientState
 - initCassandraForService :: CassandraOpts -> String -> Maybe Text -> Maybe Int32 -> Logger -> IO ClientState
 - initCassandra :: Settings -> Maybe FilePath -> Logger -> IO ClientState
 - newtype Writetime (a :: k) = Writetime {}
 - writetimeToInt64 :: forall {k} (a :: k). Writetime a -> Int64
 
Documentation
defInitCassandra :: CassandraOpts -> Logger -> IO ClientState Source #
initCassandraForService :: CassandraOpts -> String -> Maybe Text -> Maybe Int32 -> Logger -> IO ClientState Source #
Create Cassandra ClientState ("connection") for a service
initCassandra :: Settings -> Maybe FilePath -> Logger -> IO ClientState Source #
newtype Writetime (a :: k) 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 | |
Fields  | |
writetimeToInt64 :: forall {k} (a :: k). Writetime a -> Int64 Source #
This yields the same int as it is returned by WRITETIME()