Skip to content

@SteffenGlueckselig /config.clj
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Configuration with functions (and without macro)
(configure-for-ns 'gf.job.project.datenbank.simple-patch-db
(extends ['config.db-server
'gf.job.datenbank.db-patch]
(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.