|
|
|
@ -36,7 +36,7 @@
|
|
|
|
|
(str (UUID/randomUUID)))
|
|
|
|
|
|
|
|
|
|
(defn butiful-query [qry]
|
|
|
|
|
(->> (get @query-strings (hash qry))
|
|
|
|
|
(->> (get @query-strings (hash qry) "unknown query")
|
|
|
|
|
str
|
|
|
|
|
cljs/trim-newline
|
|
|
|
|
cljs/split-lines
|
|
|
|
@ -46,7 +46,7 @@
|
|
|
|
|
|
|
|
|
|
(defn exec-query! [qry params]
|
|
|
|
|
(with-open [session (db/get-session @conn)]
|
|
|
|
|
(let [query-string (get @query-strings (hash qry))
|
|
|
|
|
(let [query-string (get @query-strings (hash qry) "unknown query")
|
|
|
|
|
query-string (-> query-string
|
|
|
|
|
(cljs/replace #"\n" "")
|
|
|
|
|
(cljs/replace #"\s+" " "))
|
|
|
|
|