Liking cljdoc? Tell your friends :D

rill.wheel.repository

The protocol for implementing repositories.

The protocol for implementing repositories.
raw docstring

Repositorycljprotocol

commit!clj

(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-storeclj

(event-store repo)

The backing event store for this repository

The backing event store for this repository

updateclj

(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.
source

repository?clj

(repository? repo)

Test if repo is a repository

Test if `repo` is a repository
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close