The protocol for implementing repositories.
The protocol for implementing repositories.
(commit! repo aggregate)
Commit changes to aggregate
by storing its
:rill.wheel/new-events
. Returns true
on success or
when there are no new events. nil
otherwise.
Application writers should use rill.wheel/commit!
instead.
Commit changes to `aggregate` by storing its `:rill.wheel/new-events`. Returns `true` on success or when there are no new events. `nil` otherwise. Application writers should use `rill.wheel/commit!` instead.
(event-store repo)
The backing event store for this repository
The backing event store for this repository
(update repo aggregate)
Update an aggregate by applying any new committed events, as
determined by :rill.wheel/version
.
Application writers should call the get-{aggregate-name}
functions generated by rill.wheel/defaggregate
instead.
Update an aggregate by applying any new committed events, as determined by `:rill.wheel/version`. Application writers should call the `get-{aggregate-name}` functions generated by `rill.wheel/defaggregate` instead.
(repository? repo)
Test if repo
is a repository
Test if `repo` is a repository
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |