Skip to content

Commit

Permalink
bump to coax 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
mpenet committed Jan 31, 2024
1 parent 9a913a9 commit 9a166e5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
20 changes: 10 additions & 10 deletions project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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"]])
6 changes: 3 additions & 3 deletions src/seql/coerce.clj
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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!
Expand Down

0 comments on commit 9a166e5

Please sign in to comment.