Core functionality for database entities. Allows to store/retrieve basic entities.
Core functionality for database entities. Allows to store/retrieve basic entities.
(by-build id)
(by-customer id)
(by-display-id id)
(by-id id)
(by-param id)
(by-repo id)
(by-ssh-key id)
(by-user id)
(by-uuid uuid)
(defaggregate n & [opts])
Declares functions that are used to fetch or manipulate entities that depend on others (i.e. that do not have their own uuid).
Declares functions that are used to fetch or manipulate entities that depend on others (i.e. that do not have their own uuid).
(defentity n & [opts])
Declares functions that can be used to fetch or manipulate a basic entity in db.
Declares functions that can be used to fetch or manipulate a basic entity in db.
(delete-entities conn table f)
Deletes all entities in the table the match filter f
Deletes all entities in the table the match filter `f`
(insert-entities {:keys [ds sql-opts]} table cols recs)
Batch inserts multiple entities at once. The records are assumed to be vectors of values.
Batch inserts multiple entities at once. The records are assumed to be vectors of values.
(insert-entity {:keys [ds sql-opts] :as conn} table rec)
(insert-repo-labels conn labels)
Batch inserts multiple labels at once
Batch inserts multiple labels at once
(select-entities {:keys [ds sql-opts]} table f)
Selects entity from table using filter
Selects entity from table using filter
(select-entity conn table f)
(update-entity conn table obj)
Updates entity by id, returns the number of records updated (should be either 0 or 1).
Updates entity by id, returns the number of records updated (should be either 0 or 1).
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close