From 0b4301dfa44e4567e69a9bed60c64e4db918def3 Mon Sep 17 00:00:00 2001 From: K B Date: Thu, 15 Jun 2023 03:12:30 -0500 Subject: [PATCH] Fixed missing resources bug for the mssql pod (#59) --- .clj-kondo/com.github.seancorfield/next.jdbc/config.edn | 3 ++- .gitignore | 1 + resources/POD_BABASHKA_SQL_VERSION | 2 +- script/compile.clj | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.clj-kondo/com.github.seancorfield/next.jdbc/config.edn b/.clj-kondo/com.github.seancorfield/next.jdbc/config.edn index a67a5c6..57911b6 100644 --- a/.clj-kondo/com.github.seancorfield/next.jdbc/config.edn +++ b/.clj-kondo/com.github.seancorfield/next.jdbc/config.edn @@ -1,4 +1,5 @@ {:hooks {:analyze-call {next.jdbc/with-transaction - hooks.com.github.seancorfield.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 diff --git a/.gitignore b/.gitignore index 0a434df..6cfd282 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ /.lsp/.cache .nrepl-port .lsp +output.calva-repl \ No newline at end of file diff --git a/resources/POD_BABASHKA_SQL_VERSION b/resources/POD_BABASHKA_SQL_VERSION index 17e51c3..d917d3e 100644 --- a/resources/POD_BABASHKA_SQL_VERSION +++ b/resources/POD_BABASHKA_SQL_VERSION @@ -1 +1 @@ -0.1.1 +0.1.2 diff --git a/script/compile.clj b/script/compile.clj index 1e5acc7..7b9fa2c 100755 --- a/script/compile.clj +++ b/script/compile.clj @@ -67,7 +67,7 @@ "--initialize-at-run-time=com.microsoft.sqlserver.jdbc.SQLServerBouncyCastleLoader" "--initialize-at-run-time=com.microsoft.sqlserver.jdbc.SQLServerMSAL4JUtils" xmx] - args (if (= "mysql" pod-db-type) + args (if (= "mssql" pod-db-type) (conj args "-H:IncludeResourceBundles=com.microsoft.sqlserver.jdbc.SQLServerResource") args) args (if (= "true" (System/getenv "BABASHKA_STATIC"))