eventful-core-0.2.0: Core module for eventful

Safe HaskellSafe
LanguageHaskell2010

Eventful.Store.Queries

Synopsis

Documentation

data QueryRange key position Source #

This type defines how to query an event stream. It defines the stream key and the start/stop points for the query.

Constructors

QueryRange 

Fields

Instances

(Eq position, Eq key) => Eq (QueryRange key position) Source # 

Methods

(==) :: QueryRange key position -> QueryRange key position -> Bool #

(/=) :: QueryRange key position -> QueryRange key position -> Bool #

(Show position, Show key) => Show (QueryRange key position) Source # 

Methods

showsPrec :: Int -> QueryRange key position -> ShowS #

show :: QueryRange key position -> String #

showList :: [QueryRange key position] -> ShowS #

data QueryStart position Source #

This type defines where an event store query starts.

Constructors

StartFromBeginning 
StartQueryAt position 

Instances

Functor QueryStart Source # 

Methods

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

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

Eq position => Eq (QueryStart position) Source # 

Methods

(==) :: QueryStart position -> QueryStart position -> Bool #

(/=) :: QueryStart position -> QueryStart position -> Bool #

Show position => Show (QueryStart position) Source # 

Methods

showsPrec :: Int -> QueryStart position -> ShowS #

show :: QueryStart position -> String #

showList :: [QueryStart position] -> ShowS #

data QueryLimit position Source #

This type is used to limit the results of a query from an event store.

Instances

Functor QueryLimit Source # 

Methods

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

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

Eq position => Eq (QueryLimit position) Source # 

Methods

(==) :: QueryLimit position -> QueryLimit position -> Bool #

(/=) :: QueryLimit position -> QueryLimit position -> Bool #

Show position => Show (QueryLimit position) Source # 

Methods

showsPrec :: Int -> QueryLimit position -> ShowS #

show :: QueryLimit position -> String #

showList :: [QueryLimit position] -> ShowS #

allEvents :: key -> QueryRange key position Source #

eventsUntil :: key -> position -> QueryRange key position Source #

eventsStartingAt :: key -> position -> QueryRange key position Source #

eventsStartingAtUntil :: key -> position -> position -> QueryRange key position Source #

eventsStartingAtTakeLimit :: key -> position -> Int -> QueryRange key position Source #