integration-tests
Josha von Gizycki 6 years ago
parent 8bd66a8a76
commit e91efbe2c2

@ -3,7 +3,8 @@
[wanijo.framework.devmode :as devmode]
[clj-time.format :as time-format]
[clj-time.local :as time-local]
[clojure.spec.alpha :as spec])
[clojure.spec.alpha :as spec]
[clojure.string :as cljs])
(:import (java.util UUID)))
(spec/def ::date-str
@ -27,11 +28,11 @@
(defn butiful-query [qry]
(->> qry
str
clojure.string/trim-newline
clojure.string/split-lines
(map clojure.string/trim)
cljs/trim-newline
cljs/split-lines
(map cljs/trim)
(filter #(pos? (count %)))
(clojure.string/join \newline)))
(cljs/join \newline)))
(defn exec-query! [qry params]
(with-open [session (db/get-session @conn)]

Loading…
Cancel
Save