Re: how to create in-memory hsqldb database via java.jdbc

2013-07-09 Thread Sean Corfield
Feel free to submit PRs to improve the documentation at: http://clojure-doc.org/articles/ecosystem/java_jdbc/home.html On Mon, Jul 8, 2013 at 9:22 AM, Colin Yates wrote: > Found it - typically - messed around for hours, then post, the find it. > > The answer is to use something like 'mem:XYZ' fo

Re: how to create in-memory hsqldb database via java.jdbc

2013-07-08 Thread Colin Yates
Found it - typically - messed around for hours, then post, the find it. The answer is to use something like 'mem:XYZ' for the subname. The clue was checking in https://github.com/clojure/java.jdbc/blob/dd3c05b940b9a9c7a739247e2508ea6a5d55df65/src/main/clojure/clojure/java/jdbc.clj#L416 and see

how to create in-memory hsqldb database via java.jdbc

2013-07-08 Thread Colin Yates
Hi, I am using clojure.java.jdbc with HSQLDB, but I cannot figure out how to create an in-memory database. Whatever I try defaults to a file based instance, so: (def hsql-db {:classname "org.hsqldb.jdbcDriver" :subprotocol "hsqldb" :subname "memory"}) creates a file called memory.log etc. in