Skip to content

Commit

Permalink
bump to coax 2.x (#44)
Browse files Browse the repository at this point in the history
coax 2.0 changes the way opts are passed.
  • Loading branch information
mpenet authored Jan 31, 2024
1 parent 9a913a9 commit 8e49ae8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
22 changes: 11 additions & 11 deletions project.clj
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
(defproject exoscale/seql "0.2.4-SNAPSHOT"
(defproject exoscale/seql "1.0.0-SNAPSHOT"
:description "Simplfied EDN Query Language for SQL"
:url "https://github.com/exoscale/seql"
:license {:name "MIT/ISC License"}
: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.11.1"]
[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 8e49ae8

Please sign in to comment.