A set of helper functions for when working with relational databases.
A set of helper functions for when working with relational databases.
(active-only-where active-only)
(active-only-where include-and active-only)
(compute-deps-not-found-mask entity any-issues-mask dep-checkers)
(entities-modified-since db-spec
table
updated-at-col
deleted-at-col
modified-since
id-keyword
deleted-at-keyword
updated-at-keyword
rs->entity-fn)
(entities-modified-since db-spec
table
col
op
col-val
updated-at-col
deleted-at-col
modified-since
id-keyword
deleted-at-keyword
updated-at-keyword
rs->entity-fn)
(handle-non-unique-sqlexception db-spec
e
any-issues-bit
uniq-constraint-error-mask-pairs)
(load-entities db-spec table rs->entity-fn active-only)
(load-entities db-spec
table
order-by-col
order-by-direction
rs->entity-fn
active-only)
(load-entities-by-col db-spec table col op col-val rs->entity-fn active-only)
(load-entities-by-col db-spec
table
col
op
col-val
order-by-col
order-by-direction
rs->entity-fn
active-only)
(load-entities-modified-since db-spec
table
updated-at-col
deleted-at-col
modified-since
rs->entity-fn)
(load-entities-modified-since db-spec
table
col
op
col-val
updated-at-col
deleted-at-col
modified-since
rs->entity-fn)
(load-entity-by-2cols db-spec
table
col-1
op-1
col-val-1
col-2
op-2
col-val-2
rs->entity-fn
active-only)
(load-entity-by-col db-spec table col op col-val rs->entity-fn active-only)
(mark-entity-as-deleted db-spec
entity-id
entity-load-fn
table-keyword
updated-at-entity-keyword
if-unmodified-since)
(mark-entity-as-deleted db-spec
entity-id
entity-load-fn
table-keyword
updated-at-entity-keyword
if-unmodified-since
addl-map)
(most-recent-modified-at db-spec
modified-since
table
col
op
col-val
updated-at-col
deleted-at-col)
(most-recent-modified-at-overall db-spec modified-since tables)
(save-entity db-spec
entity-id
entity
validation-fn
any-issues-bit
entity-load-fn
table-keyword
entity-key-pairs
updated-at-entity-keyword
uniq-constraint-error-mask-pairs
dep-checkers
if-unmodified-since)
(save-if-deps-satisfied entity any-issues-bit dep-checkers do-save-fn)
(save-if-unmodified-since if-unmodified-since
loaded-entity
updated-at-entity-keyword
do-save-fn)
(save-new-entity db-spec
new-entity-id
entity
validation-fn
any-issues-bit
entity-load-fn
table-keyword
entity-key-pairs
deps-insert-map
created-at-entity-keyword
updated-at-entity-keyword
uniq-constraint-error-mask-pairs
dep-checkers)
(save-rawmap db-spec
entity-id
rawmap
any-issues-bit
entity-load-fn
table-keyword
updated-at-entity-keyword
uniq-constraint-error-mask-pairs
if-unmodified-since)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close