diff --git a/.clj-kondo/com.github.seancorfield/next.jdbc/config.edn b/.clj-kondo/com.github.seancorfield/next.jdbc/config.edn index 57911b6..c02325b 100644 --- a/.clj-kondo/com.github.seancorfield/next.jdbc/config.edn +++ b/.clj-kondo/com.github.seancorfield/next.jdbc/config.edn @@ -1,5 +1,8 @@ {:hooks {:analyze-call {next.jdbc/with-transaction - hooks.com.github.seancorfield.next-jdbc/with-transaction}} - :lint-as {next.jdbc/on-connection clojure.core/with-open}} \ No newline at end of file + hooks.com.github.seancorfield.next-jdbc/with-transaction + next.jdbc/with-transaction+options + hooks.com.github.seancorfield.next-jdbc/with-transaction+options}} + :lint-as {next.jdbc/on-connection clojure.core/with-open + next.jdbc/on-connection+options clojure.core/with-open}} diff --git a/.clj-kondo/com.github.seancorfield/next.jdbc/hooks/com/github/seancorfield/next_jdbc.clj_kondo b/.clj-kondo/com.github.seancorfield/next.jdbc/hooks/com/github/seancorfield/next_jdbc.clj_kondo index daedc45..9fc398d 100644 --- a/.clj-kondo/com.github.seancorfield/next.jdbc/hooks/com/github/seancorfield/next_jdbc.clj_kondo +++ b/.clj-kondo/com.github.seancorfield/next.jdbc/hooks/com/github/seancorfield/next_jdbc.clj_kondo @@ -16,3 +16,19 @@ opts body))] {:node new-node}))) + +(defn with-transaction+options + "Expands (with-transaction+options [tx expr opts] body) + to (let [tx expr] opts body) per clj-kondo examples." + [{:keys [:node]}] + (let [[binding-vec & body] (rest (:children node)) + [sym val opts] (:children binding-vec)] + (when-not (and sym val) + (throw (ex-info "No sym and val provided" {}))) + (let [new-node (api/list-node + (list* + (api/token-node 'let) + (api/vector-node [sym val]) + opts + body))] + {:node new-node}))) diff --git a/deps.edn b/deps.edn index 3e66cf6..de4aed3 100644 --- a/deps.edn +++ b/deps.edn @@ -10,7 +10,7 @@ metosin/reitit-pedestal {:mvn/version "0.6.0"} metosin/reitit-swagger {:mvn/version "0.6.0"} metosin/reitit-swagger-ui {:mvn/version "0.6.0"} - org.bouncycastle/bcprov-jdk15on {:mvn/version "1.70"} + org.bouncycastle/bcprov-jdk18on {:mvn/version "1.77"} org.postgresql/postgresql {:mvn/version "42.7.1"} prismatic/schema-generators {:mvn/version "0.1.5"} selmer/selmer {:mvn/version "1.12.59"}}