Liking cljdoc? Tell your friends :D

oc.lib.change.resources.seen

Store tuples of: user-id, container-id, item-id and timestamp, with a TTL

Store tuples of: user-id, container-id, item-id and timestamp, with a TTL
raw docstring

container-id-gsi-nameclj

(container-id-gsi-name db-opts)
source

container-id-gsi-projectionclj

source

container-id-item-id-gsi-nameclj

(container-id-item-id-gsi-name db-opts)
source

container-id-item-id-gsi-projectionclj

source

delete-by-container!clj

(delete-by-container! db-opts container-id)

Inputs: [db-opts container-id :- lib-schema/UniqueID]

Inputs: [db-opts container-id :- lib-schema/UniqueID]
sourceraw docstring

delete-by-item!clj

(delete-by-item! db-opts container-id item-id)

Inputs: [db-opts container-id :- lib-schema/UniqueID item-id :- lib-schema/UniqueID]

Inputs: [db-opts container-id :- lib-schema/UniqueID item-id :- lib-schema/UniqueID]
sourceraw docstring

entire-containerclj

source

move-item!clj

(move-item! db-opts item-id old-container-id new-container-id)

Inputs: [db-opts item-id :- lib-schema/UniqueID old-container-id :- lib-schema/UniqueID new-container-id :- lib-schema/UniqueID]

Inputs: [db-opts item-id :- lib-schema/UniqueID old-container-id :- lib-schema/UniqueID new-container-id :- lib-schema/UniqueID]
sourceraw docstring

org-id-user-id-gsi-nameclj

(org-id-user-id-gsi-name db-opts)
source

retrieveclj

(retrieve db-opts user-id)

Inputs: [db-opts user-id :- lib-schema/UniqueID] Returns: [{:container-id lib-schema/UniqueID, :item-id lib-schema/UniqueID, :seen-at lib-schema/ISO8601}]

Inputs: [db-opts user-id :- lib-schema/UniqueID]
Returns: [{:container-id lib-schema/UniqueID, :item-id lib-schema/UniqueID, :seen-at lib-schema/ISO8601}]
sourceraw docstring

retrieve-by-container-itemclj

(retrieve-by-container-item db-opts container-id item-id)

Inputs: [db-opts container-id :- lib-schema/UniqueID item-id :- lib-schema/UniqueID] Returns: [{(schema/optional-key :org-id) lib-schema/UniqueID, (schema/optional-key :container-id) lib-schema/UniqueID, (schema/optional-key :item-id) lib-schema/UniqueID, (schema/optional-key :container-item-id) lib-schema/UniqueID, (schema/optional-key :user-id) lib-schema/UniqueID, (schema/optional-key :seen-at) lib-schema/ISO8601, (schema/optional-key :seen-ttl) schema/Any}]

Inputs: [db-opts container-id :- lib-schema/UniqueID item-id :- lib-schema/UniqueID]
Returns: [{(schema/optional-key :org-id) lib-schema/UniqueID, (schema/optional-key :container-id) lib-schema/UniqueID, (schema/optional-key :item-id) lib-schema/UniqueID, (schema/optional-key :container-item-id) lib-schema/UniqueID, (schema/optional-key :user-id) lib-schema/UniqueID, (schema/optional-key :seen-at) lib-schema/ISO8601, (schema/optional-key :seen-ttl) schema/Any}]
sourceraw docstring

retrieve-by-user-containerclj

(retrieve-by-user-container db-opts user-id container-id)

Inputs: [db-opts user-id :- lib-schema/UniqueID container-id :- lib-schema/UniqueID] Returns: {(schema/optional-key :org-id) lib-schema/UniqueID, (schema/optional-key :container-id) lib-schema/UniqueID, (schema/optional-key :seen-at) lib-schema/ISO8601}

Inputs: [db-opts user-id :- lib-schema/UniqueID container-id :- lib-schema/UniqueID]
Returns: {(schema/optional-key :org-id) lib-schema/UniqueID, (schema/optional-key :container-id) lib-schema/UniqueID, (schema/optional-key :seen-at) lib-schema/ISO8601}
sourceraw docstring

retrieve-by-user-itemclj

(retrieve-by-user-item db-opts user-id item-id)

Inputs: [db-opts user-id :- lib-schema/UniqueID item-id :- lib-schema/UniqueID] Returns: (schema/maybe {:org-id lib-schema/UniqueID, :container-id lib-schema/UniqueID, :item-id lib-schema/UniqueID, :seen-at lib-schema/ISO8601})

Inputs: [db-opts user-id :- lib-schema/UniqueID item-id :- lib-schema/UniqueID]
Returns: (schema/maybe {:org-id lib-schema/UniqueID, :container-id lib-schema/UniqueID, :item-id lib-schema/UniqueID, :seen-at lib-schema/ISO8601})
sourceraw docstring

retrieve-by-user-orgclj

(retrieve-by-user-org db-opts user-id org-id)

Inputs: [db-opts user-id :- lib-schema/UniqueID org-id :- lib-schema/UniqueID] Returns: [{(schema/optional-key :container-id) lib-schema/UniqueID, (schema/optional-key :item-id) lib-schema/UniqueID, (schema/optional-key :seen-at) lib-schema/ISO8601}]

Inputs: [db-opts user-id :- lib-schema/UniqueID org-id :- lib-schema/UniqueID]
Returns: [{(schema/optional-key :container-id) lib-schema/UniqueID, (schema/optional-key :item-id) lib-schema/UniqueID, (schema/optional-key :seen-at) lib-schema/ISO8601}]
sourceraw docstring

store!clj

(store! db-opts seen-item)
(store! db-opts user-id org-id container-id seen-at seen-ttl)
(store! db-opts user-id org-id container-id item-id seen-at seen-ttl)

Inputs: ([db-opts seen-item] [db-opts user-id :- lib-schema/UniqueID org-id :- lib-schema/UniqueID container-id :- lib-schema/UniqueID seen-at :- lib-schema/ISO8601 seen-ttl :- schema/Int] [db-opts user-id :- lib-schema/UniqueID org-id :- lib-schema/UniqueID container-id :- lib-schema/UniqueID item-id :- lib-schema/UniqueID seen-at :- lib-schema/ISO8601 seen-ttl :- schema/Int])

Inputs: ([db-opts seen-item] [db-opts user-id :- lib-schema/UniqueID org-id :- lib-schema/UniqueID container-id :- lib-schema/UniqueID seen-at :- lib-schema/ISO8601 seen-ttl :- schema/Int] [db-opts user-id :- lib-schema/UniqueID org-id :- lib-schema/UniqueID container-id :- lib-schema/UniqueID item-id :- lib-schema/UniqueID seen-at :- lib-schema/ISO8601 seen-ttl :- schema/Int])
sourceraw docstring

table-nameclj

(table-name db-opts)
source

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

× close