(add-agg! store agg-type agg-attrs)Insert a new aggregate. Returns {:id uuid :valid-from timestamp}.
Insert a new aggregate. Returns {:id uuid :valid-from timestamp}.
(add-event! store
{:keys [event-type agg-type agg-id agg-version request-id
interaction-id payload]
:as params})Insert a new event. Returns {:id uuid :created-at timestamp}. Throws on (agg-type, agg-id, agg-version) conflict.
Insert a new event. Returns {:id uuid :created-at timestamp}.
Throws on (agg-type, agg-id, agg-version) conflict.(get-agg-by-id store agg-type agg-id)Select aggregate by id. Returns {:id :agg-type :version :attrs :valid-from} or nil.
Select aggregate by id. Returns {:id :agg-type :version :attrs :valid-from} or nil.
(get-event-by-agg-version store agg-type agg-id agg-version)(get-events-by-agg-id store agg-type agg-id)(modify-agg! store agg-type agg-id agg-version agg-attrs)Update an existing aggregate. Returns {:valid-from timestamp} or nil if not found.
Update an existing aggregate. Returns {:valid-from timestamp} or nil if not found.
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 |