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
Retrieves the latest build for the repo
Retrieves the latest build for the repo
Retrieves the next integer build index to use. This is supposed to be the highest build index + 1.
Retrieves the next integer build index to use. This is supposed to be the highest build index + 1.
Reads the repo, as part of the customer object's projects
Reads the repo, as part of the customer object's projects
Find user by type id (e.g. github)
Find user by type id (e.g. github)
Looks up all watched repos with the given github id
Looks up all watched repos with the given github 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
Lists all builds for the repo, and fetches the build details, similar to find-build
but does not contain the job details.
Lists all builds for the repo, and fetches the build details, similar to `find-build` but does not contain the job details.
Retrieves all customer join requests for that customer
Retrieves all customer join requests for that customer
Lists all display ids for the repos for given customer
Lists all display ids for the repos for given customer
Retrieves all customer join requests for that user
Retrieves all customer join requests for that user
(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
Saves the repository by updating the customer it belongs to
Saves the repository by updating the customer it belongs to
Searches customers using given filter
Searches customers using given filter
Removes the records to stop watching the repo. The entity will still exist, so any past builds can be looked up.
Removes the records to stop watching the repo. The entity will still exist, so any past builds can be looked up.
Applies f
to the repo with given sid
Applies `f` to the repo with given sid
Creates necessary records to start watching a github repo. Creates the repo entity and returns it.
Creates necessary records to start watching a github repo. Creates the repo entity and returns it.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close