From 9a166e5d06180908cedf136c798a4dcd338d0de7 Mon Sep 17 00:00:00 2001 From: Max Penet Date: Wed, 31 Jan 2024 09:31:03 +0100 Subject: [PATCH] bump to coax 2.x --- project.clj | 20 ++++++++++---------- src/seql/coerce.clj | 6 +++--- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/project.clj b/project.clj index 96d5910..daccba0 100644 --- a/project.clj +++ b/project.clj @@ -5,17 +5,17 @@ :pedantic? :abort :scm {:name "git" :url "https://github.com/exoscale/seql"} :deploy-repositories [["snapshots" :clojars] - ["releases" :clojars]] - :profiles {:dev {:dependencies [[com.h2database/h2 "1.4.200"]] - :plugins [[lein-cljfmt "0.8.0"]] - :pedantic? :warn - :source-paths ["dataset"] - :resource-paths ["dataset"]} + ["releases" :clojars]] + :profiles {:dev {:dependencies [[com.h2database/h2 "1.4.200"]] + :plugins [[lein-cljfmt "0.8.0"]] + :pedantic? :warn + :source-paths ["dataset"] + :resource-paths ["dataset"]} :test {:pedantic? :ignore - :plugins [[lein-cloverage "1.2.2"]]} + :plugins [[lein-cloverage "1.2.2"]]} :uberjar {:pedantic? :abort}} :aliases {"coverage" ["with-profile" "+test" "cloverage"]} - :dependencies [[org.clojure/clojure "1.10.3"] + :dependencies [[org.clojure/clojure "1.10.3"] [com.github.seancorfield/next.jdbc "1.2.737"] - [com.github.seancorfield/honeysql "2.1.818"] - [exoscale/coax "1.0.0-alpha14"]]) + [com.github.seancorfield/honeysql "2.1.818"] + [exoscale/coax "2.0.0"]]) diff --git a/src/seql/coerce.clj b/src/seql/coerce.clj index 0cbbc57..d296341 100644 --- a/src/seql/coerce.clj +++ b/src/seql/coerce.clj @@ -1,12 +1,12 @@ (ns seql.coerce "Handling of field coercion for read/write" (:refer-clojure :exclude [read]) - (:require [clojure.edn :as edn] + (:require [clojure.edn :as edn] [exoscale.coax :as c])) (def ^:no-doc spec-registry (atom {::reader {} - ::writer {::c/idents {`keyword? (fn [x _] (name x))}}})) + ::writer {:idents {`keyword? (fn [x _] (name x))}}})) (defn edn-reader "An example reader for arbitrary values stored in EDN in the database" @@ -20,7 +20,7 @@ (defn ^:no-doc -register-rw! [type spec-key coercer] - (swap! spec-registry assoc-in [type ::c/idents spec-key] coercer) + (swap! spec-registry assoc-in [type :idents spec-key] coercer) spec-key) (defn with-writer!