This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn handle | |
[env params] | |
(let [p (parser {:read readf | |
:mutate mutatef}) | |
result (p env params) | |
errors (->> result | |
(filter (fn [[k v]] (instance? Throwable v))))] | |
(if (seq errors) | |
(do | |
(doseq [[req res] errors] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns scratch.db-fns-test-case | |
(:require | |
[datomic.api :refer (q db) :as d])) | |
(def test-state (atom | |
{:db-str "datomic:free://localhost:4334/somedb" | |
;:db-str"datomic:mem://test" | |
})) | |
(swap! test-state |
NewerOlder