franz-0.2.1: Append-only database

Safe HaskellNone
LanguageHaskell2010

Database.Franz.Reader

Documentation

data RequestType Source #

Constructors

AllItems 
LastItem 
Instances
Show RequestType Source # 
Instance details

Defined in Database.Franz.Reader

Generic RequestType Source # 
Instance details

Defined in Database.Franz.Reader

Associated Types

type Rep RequestType :: Type -> Type #

Serialize RequestType Source # 
Instance details

Defined in Database.Franz.Reader

type Rep RequestType Source # 
Instance details

Defined in Database.Franz.Reader

type Rep RequestType = D1 (MetaData "RequestType" "Database.Franz.Reader" "franz-0.2.1-DMs1sFxJDSYKCecIbcBQYI" False) (C1 (MetaCons "AllItems" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "LastItem" PrefixI False) (U1 :: Type -> Type))

data ItemRef Source #

Constructors

BySeqNum !Int

sequential number

ByIndex !ByteString !Int

index name and value

Instances
Show ItemRef Source # 
Instance details

Defined in Database.Franz.Reader

Generic ItemRef Source # 
Instance details

Defined in Database.Franz.Reader

Associated Types

type Rep ItemRef :: Type -> Type #

Methods

from :: ItemRef -> Rep ItemRef x #

to :: Rep ItemRef x -> ItemRef #

Serialize ItemRef Source # 
Instance details

Defined in Database.Franz.Reader

type Rep ItemRef Source # 
Instance details

Defined in Database.Franz.Reader

data Query Source #

Constructors

Query 

Fields

Instances
Show Query Source # 
Instance details

Defined in Database.Franz.Reader

Methods

showsPrec :: Int -> Query -> ShowS #

show :: Query -> String #

showList :: [Query] -> ShowS #

Generic Query Source # 
Instance details

Defined in Database.Franz.Reader

Associated Types

type Rep Query :: Type -> Type #

Methods

from :: Query -> Rep Query x #

to :: Rep Query x -> Query #

Serialize Query Source # 
Instance details

Defined in Database.Franz.Reader

Methods

put :: Putter Query #

get :: Get Query #

type Rep Query Source # 
Instance details

Defined in Database.Franz.Reader

type QueryResult = ((Int, Int), (Int, Int)) Source #

range Source #

Arguments

:: Int

from

-> Int

to

-> RequestType 
-> IntMap Int

offsets

-> (Bool, QueryResult) 

splitR :: Int -> IntMap a -> (IntMap a, IntMap a) Source #

data FranzException Source #

Instances
Show FranzException Source # 
Instance details

Defined in Database.Franz.Reader

Generic FranzException Source # 
Instance details

Defined in Database.Franz.Reader

Associated Types

type Rep FranzException :: Type -> Type #

Exception FranzException Source # 
Instance details

Defined in Database.Franz.Reader

Serialize FranzException Source # 
Instance details

Defined in Database.Franz.Reader

type Rep FranzException Source # 
Instance details

Defined in Database.Franz.Reader