Last active
January 23, 2017 11:55
-
-
Save krisleech/a6502134b82065adfb4470a03451bf86 to your computer and use it in GitHub Desktop.
Clojure JDBC HyperSQL (like SQLite but Java only so self contained)
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
(require '[clojure.java.jdbc :as j]) | |
;; file | |
(j/execute! { :subprotocol "hsqldb" :subname "file:./db/testdb"} ["CREATE TABLE changes(id INT)"]) | |
;; in memory | |
(j/execute! { :subprotocol "hsqldb" :subname "file:./db/testdb"} ["CREATE TABLE changes(id INT)"]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment