Liking cljdoc? Tell your friends :D

oc.lib.change.resources.read

Retrieve tuples from read table of Change service

Retrieve tuples from read table of Change service
raw docstring

container-id-gsi-nameclj

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

container-id-item-id-gsi-nameclj

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

countsclj

(counts db-opts item-ids user-id)

Inputs: [db-opts item-ids :- [lib-schema/UniqueID] user-id :- lib-schema/UniqueID] Returns: [{:item-id lib-schema/UniqueID, :count schema/Int, :last-read-at (schema/maybe lib-schema/ISO8601)}]

Inputs: [db-opts item-ids :- [lib-schema/UniqueID] user-id :- lib-schema/UniqueID]
Returns: [{:item-id lib-schema/UniqueID, :count schema/Int, :last-read-at (schema/maybe lib-schema/ISO8601)}]
sourceraw docstring

delete!clj

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 item-id)
(delete-by-item! db-opts container-id item-id)

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

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

delete-by-org!clj

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

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

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

delete-user-item!clj

(delete-user-item! db-opts user-id item-id)

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

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

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

retrieve-by-containerclj

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

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

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

retrieve-by-itemclj

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

Inputs: [db-opts item-id :- lib-schema/UniqueID] Returns: [{:user-id lib-schema/UniqueID, :name schema/Str, :avatar-url (schema/maybe schema/Str), :read-at lib-schema/ISO8601}]

Inputs: [db-opts item-id :- lib-schema/UniqueID]
Returns: [{:user-id lib-schema/UniqueID, :name schema/Str, :avatar-url (schema/maybe schema/Str), :read-at lib-schema/ISO8601}]
sourceraw docstring

retrieve-by-orgclj

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

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

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

retrieve-by-userclj

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

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

Inputs: [db-opts user-id :- lib-schema/UniqueID]
Returns: [{(schema/optional-key :container-id) lib-schema/UniqueID, :item-id lib-schema/UniqueID, :read-at lib-schema/ISO8601}]
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: [{:item-id lib-schema/UniqueID, :read-at lib-schema/ISO8601}]

Inputs: [db-opts user-id :- lib-schema/UniqueID container-id :- lib-schema/UniqueID]
Returns: [{:item-id lib-schema/UniqueID, :read-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/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 :user-id) lib-schema/UniqueID, (schema/optional-key :name) schema/Str, (schema/optional-key :avatar-url) (schema/maybe schema/Str), (schema/optional-key :read-at) lib-schema/ISO8601}

Inputs: [db-opts user-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 :user-id) lib-schema/UniqueID, (schema/optional-key :name) schema/Str, (schema/optional-key :avatar-url) (schema/maybe schema/Str), (schema/optional-key :read-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 :item-id) lib-schema/UniqueID, (schema/optional-key :container-id) lib-schema/UniqueID, (schema/optional-key :read-at) lib-schema/ISO8601}]

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

store!clj

(store! db-opts
        org-id
        container-id
        item-id
        user-id
        user-name
        avatar-url
        read-at)

Inputs: [db-opts org-id :- lib-schema/UniqueID container-id :- lib-schema/UniqueID item-id :- lib-schema/UniqueID user-id :- lib-schema/UniqueID user-name :- schema/Str avatar-url :- (schema/maybe schema/Str) read-at :- lib-schema/ISO8601]

Inputs: [db-opts org-id :- lib-schema/UniqueID container-id :- lib-schema/UniqueID item-id :- lib-schema/UniqueID user-id :- lib-schema/UniqueID user-name :- schema/Str avatar-url :- (schema/maybe schema/Str) read-at :- lib-schema/ISO8601]
sourceraw docstring

table-nameclj

(table-name db-opts)
source

user-id-gsi-nameclj

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

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

× close