From 168ada2eb7301c1a5393831fc4b18971c70e48fb Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 9 Jul 2019 11:03:31 +0200 Subject: [PATCH] Minor fixes --- deps.edn | 4 ++++ pom.xml | 2 +- src/suricatta/impl.clj | 7 +++++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/deps.edn b/deps.edn index 3d5b17f..8e60042 100644 --- a/deps.edn +++ b/deps.edn @@ -9,6 +9,10 @@ :extra-paths ["test"]} :bench {:extra-deps {seancorfield/next.jdbc {:mvn/version "1.0.1"} criterium/criterium {:mvn/version "0.4.5"}}} + + :jar {:extra-deps {seancorfield/depstar {:mvn/version "RELEASE"}} + :main-opts ["-m" "hf.depstar.jar"]} + :repl {:main-opts ["-m" "rebel-readline.main"]} :ancient {:main-opts ["-m" "deps-ancient.deps-ancient"] :extra-deps {deps-ancient {:mvn/version "RELEASE"}}} diff --git a/pom.xml b/pom.xml index daf4d4f..299f7a2 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ funcool suricatta jar - 2.0.0 + 2.0.0-SNAPSHOT suricatta High level sql toolkit for clojure (backed by jooq library) https://github.com/funcool/suricatta diff --git a/src/suricatta/impl.clj b/src/suricatta/impl.clj index 80a47f0..4fe889d 100644 --- a/src/suricatta/impl.clj +++ b/src/suricatta/impl.clj @@ -92,6 +92,9 @@ (extend-protocol proto/IParam Object + (-param [v _] v) + + nil (-param [v _] v)) (defn wrap-if-need @@ -223,8 +226,12 @@ ;; Default implementation for avoid call to `satisfies?` (extend-protocol proto/ISQLType Object + (-convert [v] v) + + nil (-convert [v] v)) + (defn- result-record->record [^org.jooq.Record record] (letfn [(reduce-fn [acc ^Field field]