korma / Korma

Tasty SQL for Clojure.
http://sqlkorma.com
1.48k stars 222 forks source link

Adds a helper to execute statements without an implicit transaction #237

Closed ls4f closed 9 years ago

ls4f commented 10 years ago

SQLite has some useful PRAGMA statements, some of which appear not to work when executed within a transaction (notably - PRAGMA user_version=X;, which I used in the test). Can't say if it has use with other databases.

PS Wasn't sure where to put it, so it's subject to move.

Jae commented 9 years ago

I'm also looking for a way to execute a statement without implicit transaction with exec-raw function... without fall back down to clojure.java.jdbc.

Any thought?

ls4f commented 9 years ago

Not sure that would be possible, but the fallback isn't all that complex.