Liking cljdoc? Tell your friends :D

telsos.lib.es


add-agg!clj/s

(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}.
raw docstring

add-event!clj/s

(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.
raw docstring

Aggclj/s


Agg?clj/s


Eventclj/s


Event?clj/s


get-agg-by-idclj/s

(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.
raw docstring

get-event-by-agg-versionclj/s

(get-event-by-agg-version store agg-type agg-id agg-version)

get-events-by-agg-idclj/s

(get-events-by-agg-id store agg-type agg-id)

modify-agg!clj/s

(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.
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close