| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Eventful.Store.Queries
- data QueryRange key position = QueryRange {
- queryRangeKey :: key
- queryRangeStart :: QueryStart position
- queryRangeLimit :: QueryLimit position
- data QueryStart position
- = StartFromBeginning
- | StartQueryAt position
- data QueryLimit position
- = NoQueryLimit
- | MaxNumberOfEvents Int
- | StopQueryAt position
- allEvents :: key -> QueryRange key position
- eventsUntil :: key -> position -> QueryRange key position
- eventsStartingAt :: key -> position -> QueryRange key position
- eventsStartingAtUntil :: key -> position -> position -> QueryRange key position
- eventsStartingAtTakeLimit :: key -> position -> Int -> QueryRange key position
Documentation
data QueryRange key position #
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) # | |
| (Show position, Show key) => Show (QueryRange key position) # | |
data QueryStart position #
This type defines where an event store query starts.
Constructors
| StartFromBeginning | |
| StartQueryAt position |
Instances
| Functor QueryStart # | |
| Eq position => Eq (QueryStart position) # | |
| Show position => Show (QueryStart position) # | |
data QueryLimit position #
This type is used to limit the results of a query from an event store.
Constructors
| NoQueryLimit | |
| MaxNumberOfEvents Int | |
| StopQueryAt position |
Instances
| Functor QueryLimit # | |
| Eq position => Eq (QueryLimit position) # | |
| Show position => Show (QueryLimit position) # | |
allEvents :: key -> QueryRange key position #
eventsUntil :: key -> position -> QueryRange key position #
eventsStartingAt :: key -> position -> QueryRange key position #
eventsStartingAtUntil :: key -> position -> position -> QueryRange key position #
eventsStartingAtTakeLimit :: key -> position -> Int -> QueryRange key position #