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
(delete-by-container! db-opts container-id)
Inputs: [db-opts container-id :- lib-schema/UniqueID]
Inputs: [db-opts container-id :- lib-schema/UniqueID]
(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]
(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]
(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}]
(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/DoubleUniqueID, (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/DoubleUniqueID, (schema/optional-key :user-id) lib-schema/UniqueID, (schema/optional-key :seen-at) lib-schema/ISO8601, (schema/optional-key :seen-ttl) schema/Any}]
(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}
(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})
(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}]
(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])
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close