- data Column
- (=:) :: (BS column, BS value) => column -> value -> Column
- (=|) :: BS supercolumn => supercolumn -> [Column] -> Column
- insert :: BS key => ColumnFamily -> key -> [Column] -> Cassandra ()
- remove :: BS key => ColumnFamily -> key -> Filter -> Cassandra ()
- data Filter
- = AllColumns
- | ColNames [ByteString]
- | SupNames ByteString [ByteString]
- | ColRange { }
- get :: BS key => ColumnFamily -> key -> Filter -> Cassandra [Column]
- multiget :: BS key => ColumnFamily -> [key] -> Filter -> Cassandra (Map key [Column])
- range :: forall column_name. BS column_name => column_name -> column_name -> Bool -> Int32 -> Filter
- columns :: forall column_name. BS column_name => [column_name] -> Filter
- withCassandra :: CassandraConfig -> Cassandra a -> IO a
- data CassandraConfig = CassandraConfig {}
- initConfig :: CassandraConfig
- getConnection :: Cassandra (BinaryProtocol (FramedTransport Handle), BinaryProtocol (FramedTransport Handle))
- getKeyspace :: Cassandra Keyspace
- setKeyspace :: Keyspace -> Cassandra ()
- getConsistencyLevel :: Cassandra ConsistencyLevel
- setConsistencyLevel :: ConsistencyLevel -> Cassandra ()
- getTime :: Cassandra Int64
- getCassandra :: Cassandra CassandraConfig
- type Cassandra a = CassandraT a
- type CassandraT a = StateT CassandraConfig IO a
Documentation
get :: BS key => ColumnFamily -> key -> Filter -> Cassandra [Column]Source
for the given key, within the column family, retrieve all columns, unless filtered
range :: forall column_name. BS column_name => column_name -> column_name -> Bool -> Int32 -> FilterSource
a smarter constructor for building a Range filter
columns :: forall column_name. BS column_name => [column_name] -> FilterSource
a smarter constructor for building a Columns filter
withCassandra :: CassandraConfig -> Cassandra a -> IO aSource
getConnection :: Cassandra (BinaryProtocol (FramedTransport Handle), BinaryProtocol (FramedTransport Handle))Source
setKeyspace :: Keyspace -> Cassandra ()Source
type Cassandra a = CassandraT aSource
type CassandraT a = StateT CassandraConfig IO aSource