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-customer-param-values conn values)
Batch inserts multiple parameter values at once
Batch inserts multiple parameter values at once
(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-repo-labels conn labels)
Batch inserts multiple labels at once
Batch inserts multiple labels at once
(insert-user-customers conn user-id cust-ids)
Batch inserts user/customer links
Batch inserts user/customer 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)
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