Data storage functionality. Next to basic storage implementations, this ns also contains a lot of functions for working with storage entities. Many of these are overridden by implementation-specific functions, and so implementations here don't focus on efficiency. They are merely used in tests.
Data storage functionality. Next to basic storage implementations, this ns also contains a lot of functions for working with storage entities. Many of these are overridden by implementation-specific functions, and so implementations here don't focus on efficiency. They are merely used in tests.
(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)
Deletes a single parameter set by sid
Deletes a single parameter set by sid
Deletes repository with given sid, including all builds
Deletes repository with given sid, including all builds
(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.
Retrieves a single parameter by sid
Retrieves a single parameter by sid
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-build-ids 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 builds for customer since the given timestamp
Retrieves all builds for customer since the given timestamp
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 a single customer parameter
Saves a single customer parameter
(save-params s cust-id p)
Saves all customer parameters at once
Saves all customer parameters at once
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