Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump to coax 2.x #44

Merged
merged 3 commits into from
Jan 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading