Clojure jdbc create-table statement does not run unless using Leiningen REPL

前端 未结 1 1854
广开言路
广开言路 2021-01-17 22:50

I\'ve got a small Clojure program that uses the Clojure JDBC tools to create a table in an HSQL database. However, it only seems to actually create the table if I run it fro

相关标签:
1条回答
  • 2021-01-17 23:41

    This is a common HSQLDB configuration question.

    HSQLDB's default configuration is not intended for test usage. As a result, it delays writing and synching the .log entries by 500 milliseconds and it does not shutdown the database when the connection is closed. Try either of these settings in your URL:

    :subname "file:/tmp/tramwaydb;hsqldb.write_delay=false"
    

    or

    :subname "file:/tmp/tramwaydb;shutdown=true"
    

    See the various option here: http://hsqldb.org/doc/2.0/guide/dbproperties-chapt.html

    0 讨论(0)
提交回复
热议问题