Use cljify in promise-sqlite.
This commit is contained in:
parent
ea027e8cea
commit
4f37a86039
1 changed files with 2 additions and 1 deletions
|
@ -5,6 +5,7 @@
|
||||||
(ns datomish.promise-sqlite
|
(ns datomish.promise-sqlite
|
||||||
(:require
|
(:require
|
||||||
[datomish.sqlite :as s]
|
[datomish.sqlite :as s]
|
||||||
|
[datomish.cljify :refer [cljify]]
|
||||||
[cljs-promises.async]
|
[cljs-promises.async]
|
||||||
[cljs.nodejs :as nodejs]))
|
[cljs.nodejs :as nodejs]))
|
||||||
|
|
||||||
|
@ -20,7 +21,7 @@
|
||||||
(-each
|
(-each
|
||||||
[db sql bindings row-cb]
|
[db sql bindings row-cb]
|
||||||
(let [cb (fn [row]
|
(let [cb (fn [row]
|
||||||
(row-cb (js->clj row :keywordize-keys true)))]
|
(row-cb (cljify row)))]
|
||||||
(cljs-promises.async/pair-port
|
(cljs-promises.async/pair-port
|
||||||
(.each (.-db db) sql (or (clj->js bindings) #js []) (when row-cb cb)))))
|
(.each (.-db db) sql (or (clj->js bindings) #js []) (when row-cb cb)))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue