Liking cljdoc? Tell your friends :D

pe-jdbc-utils.core

A set of helper functions for when working with relational databases.

A set of helper functions for when working with relational databases.
raw docstring

active-only-whereclj

(active-only-where active-only)
(active-only-where include-and active-only)
source

auto-inc-triggercljmultimethod

source

auto-inc-trigger-fncljmultimethod

source

auto-inc-trigger-single-non-nil-cond-fncljmultimethod

source

compute-deps-not-found-maskclj

(compute-deps-not-found-mask entity any-issues-mask dep-checkers)
source

create-databasecljmultimethod

source

drop-databasecljmultimethod

source

entities-modified-sinceclj

(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)
source

entity-key-pairs->rawmapclj

(entity-key-pairs->rawmap entity entity-key-pairs)
source

handle-non-unique-sqlexceptionclj

(handle-non-unique-sqlexception db-spec
                                e
                                any-issues-bit
                                uniq-constraint-error-mask-pairs)
source

inc-trigger-fn-nameclj

(inc-trigger-fn-name table column)
source

load-entitiesclj

(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)
source

load-entities-by-colclj

(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)
source

load-entities-modified-sinceclj

(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)
source

load-entity-by-2colsclj

(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)
source

load-entity-by-colclj

(load-entity-by-col db-spec table col op col-val rs->entity-fn active-only)
source

mark-entity-as-deletedclj

(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)
source

most-recent-modified-atclj

(most-recent-modified-at db-spec
                         modified-since
                         table
                         col
                         op
                         col-val
                         updated-at-col
                         deleted-at-col)
source

most-recent-modified-at-overallclj

(most-recent-modified-at-overall db-spec modified-since tables)
source

order-byclj

(order-by order-by-col order-direction)
source

save-entityclj

(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)
source

save-if-deps-satisfiedclj

(save-if-deps-satisfied entity any-issues-bit dep-checkers do-save-fn)
source

save-if-existsclj

(save-if-exists db-spec entity-load-fn entity-id do-save-fn)
source

save-if-unmodified-sinceclj

(save-if-unmodified-since if-unmodified-since
                          loaded-entity
                          updated-at-entity-keyword
                          do-save-fn)
source

save-if-validclj

(save-if-valid validation-fn entity any-issues-bit do-save-fn)
source

save-new-entityclj

(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)
source

save-rawmapclj

(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)
source

seq-next-valcljmultimethod

source

uniq-constraint-violatedcljmultimethod

source

uniq-constraint-violated?cljmultimethod

source

with-try-catch-exec-as-queryclj

(with-try-catch-exec-as-query db-spec stmt)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close