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-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 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 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 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