Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data MultiTablePagingState (name :: Symbol) tables = MultiTablePagingState {
- mtpsTable :: tables
- mtpsState :: Maybe ByteString
- class PagingTable t where
- encodePagingTable :: t -> Word8
- decodePagingTable :: MonadFail m => Word8 -> m t
Documentation
data MultiTablePagingState (name :: Symbol) tables Source #
The state of a multi-table paginated query. It is made of a reference to the table currently being paginated, as well as an opaque token returned by Cassandra.
MultiTablePagingState | |
|
Instances
class PagingTable t where Source #
A class for values that can be encoded with a single byte. Used to add a byte of extra information to the paging state in order to recover the table information from a paging token.
encodePagingTable :: t -> Word8 Source #
decodePagingTable :: MonadFail m => Word8 -> m t Source #
Instances
PagingTable LocalOrRemoteTable Source # | |
Defined in Wire.API.Routes.MultiTablePaging encodePagingTable :: LocalOrRemoteTable -> Word8 Source # decodePagingTable :: MonadFail m => Word8 -> m LocalOrRemoteTable Source # |