Move platform-specific code into src-node.

This commit is contained in:
Richard Newman 2016-09-07 17:15:30 -07:00
parent c4f5564b35
commit cc25ce33e2
4 changed files with 0 additions and 9 deletions

View file

@ -35,12 +35,3 @@
(-> (->
(.open sqlite.DB path (clj->js {:mode mode})) (.open sqlite.DB path (clj->js {:mode mode}))
(.then ->SQLite3Connection)))) (.then ->SQLite3Connection))))
(extend-protocol s/ISQLiteConnectionFactory
string
(<sqlite-connection [path]
(open path))
object ;; TODO: narrow this to the result of node-tempfile/tempfile.
(<sqlite-connection [tempfile]
(open (.-name tempfile))))