Core functionality for database entities. Allows to store/retrieve basic entities.
Core functionality for database entities. Allows to store/retrieve basic entities.
(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 cuid).
Declares functions that are used to fetch or manipulate entities that depend on others (i.e. that do not have their own cuid).
(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-org-param-values conn values)
Batch inserts multiple parameter values at once
Batch inserts multiple parameter values at once
(insert-repo-labels conn labels)
Batch inserts multiple labels at once
Batch inserts multiple labels at once
(insert-user-orgs conn user-id cust-ids)
Batch inserts user/org links
Batch inserts user/org links
(select {:keys [ds sql-opts]} query)
Formats and executes the given query
Formats and executes the given query
(select-entities conn table f)
Selects entity from table using filter
Selects entity from table using filter
(update-entity conn table obj)
(update-entity conn table obj id-col)
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