Data storage functionality
Data storage functionality
(build-exists? s sid)
Checks efficiently if the build exists. This is cheaper than trying to fetch it
and checking if the result is nil
.
Checks efficiently if the build exists. This is cheaper than trying to fetch it and checking if the result is `nil`.
(create-build-metadata s md)
(create-build-metadata s sid md)
(find-build-metadata s sid)
Reads the build metadata given the build coordinates (required to build the path)
Reads the build metadata given the build coordinates (required to build the path)
(find-build-results s sid)
Reads the build results given the build coordinates
Reads the build results given the build coordinates
(find-customer s id)
(find-details-for-webhook s id)
(find-params s cust-id)
(find-repo s [cust-id id])
Reads the repo, as part of the customer object's projects
Reads the repo, as part of the customer object's projects
(find-ssh-keys s cust-id)
(find-user s id)
(global-sid type id)
(legacy-build-exists? s sid)
Similar to build-exists?
but for legacy builds that consist of metadata and
result entities.
Similar to `build-exists?` but for legacy builds that consist of metadata and result entities.
(list-builds s sid)
Lists the ids of the builds for given repo sid
Lists the ids of the builds for given repo sid
(make-memory-storage)
(params-sid customer-id)
(patch-build-results st sid f & args)
Finds the build result with given sid, then applies f
to it with arguments
and saves the return value back into the result.
Finds the build result with given sid, then applies `f` to it with arguments and saves the return value back into the result.
(save-build s build)
Creates or updates the build entity
Creates or updates the build entity
(save-build-results s sid r)
(save-customer s cust)
(save-params s cust-id p)
(save-repo s {:keys [customer-id id] :as r})
Saves the repository by updating the customer it belongs to
Saves the repository by updating the customer it belongs to
(save-ssh-keys s cust-id key)
(save-user s u)
(save-webhook-details s details)
(ssh-keys-sid cust-id)
(user-sid [type id])
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close