We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1cff26 commit ba94464Copy full SHA for ba94464
src/asami/core.cljc
@@ -19,6 +19,14 @@
19
20
(defonce connections (atom {}))
21
22
+(defn shutdown
23
+ "Releases all connection resources for a clean shutdown"
24
+ []
25
+ (doseq [connection (vals @connections)] (storage/release connection)))
26
+
27
+#?(:clj
28
+ (.addShutdownHook (Runtime/getRuntime) (Thread. shutdown)))
29
30
(s/defn ^:private parse-uri :- {:type s/Str
31
:name s/Str}
32
"Splits up a database URI string into structured parts"
0 commit comments