Embedded dynamo-local for clojure with support for apple M1 macs
2.0.0 uses an in process server that requires jetty 12 this may cause compatibility issues
0.1.7 launches a jar in a separate process and thus should be 100% compatible, just a tiny bit slower
org.clojars.bigsy/dynamo-embedded-clj {:mvn/version "0.1.7"}
org.clojars.bigsy/dynamo-embedded-clj {:mvn/version "2.0.0"}
(require 'dynamo-embedded-clj.core)
;; Start a local dynamo with default port:
(init-dynamo)
;; another call will halt the previous system:
(init-dynamo)
;; When you're done:
(halt-dynamo!)
NOTE: these will halt running dynamo instances
config vector is optional - if you don't pass it default it is inMemory and port 8000 - you can pass an array which supports any switches supported by dynamo-local
(require 'clojure.test)
(use-fixtures :once with-dynamo-fn) ;; no config defaulkts
(defn around-all
[f]
(with-dynamo-fn ["-inMemory" "-port" "8010"] f)) ;; custom config
(use-fixtures :once around-all)
;;; You can also wrap ad-hoc code in init/halt:
(with-dynamo default-config ;; default-config from lib core
,,, :do-something ,,,)
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close