;; now actively shut down the pool so that any open connections are closed
...
...
@@ -134,12 +132,11 @@
;; TODO - I don't think short-lived? key is really needed anymore. It's only used by unit tests, and its original purpose was for creating temporary DBs;
;; since we don't destroy databases at the end of each test anymore, it's probably time to remove this
[{:keys[enginedetails],:asdatabase}]
(let[driver(driver/engine->driverengine)]
(if(:short-lived?details)
;; short-lived connections are not pooled, so just return an ephemeral connection
(connection-details->specdriverdetails)
;; default behavior is to use a pooled connection
(db->pooled-connection-specdatabase))))
(if(:short-lived?details)
;; short-lived connections are not pooled, so just return a non-pooled spec