Embed URL


SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Configuration with functions (and without macro)

View config.clj
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
(configure-for-ns 'gf.job.project.datenbank.simple-patch-db
(extends ['config.db-server
(let [
;; in dieses Verzeichnis werden die Trafo-Skripte generiert und von hier werden sie in das Project-Entwicklungsverzeichnis kopiert
trafo-gen-dir "c:\\Users\\me\\Documents\\Scratch\\Database\\Trafos\\1.0A_patches\\"
;; Hier landen die EXE-Patches.
patches-dst-dir "q:\\Current\\Job.Project\\Current\\Datenbank\\Dev-Patches\\"
db-patches-raw (:db-patches (from-ns-config 'gf.job.project.datenbank.db-patches))
db-patches (->> db-patches-raw
(map (fn [patch] (update-in patch [:script-src] (fn [_] (str trafo-gen-dir (:script patch)))))) ;; wird hinzugefĆ¼gt.
(map (fn [patch] (update-in patch [:script] (fn [script] (str patches-dst-dir script))))))]
:db-patches db-patches})))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.