https://github.com/ivarref/rewriting-history
A library to rewrite Datomic history. On-prem only.
https://github.com/ivarref/rewriting-history
datomic history rewrite
Last synced: about 1 month ago
JSON representation
A library to rewrite Datomic history. On-prem only.
- Host: GitHub
- URL: https://github.com/ivarref/rewriting-history
- Owner: ivarref
- License: epl-2.0
- Created: 2021-02-26T14:13:02.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-03-26T19:53:42.000Z (about 1 year ago)
- Last Synced: 2025-03-28T12:38:26.881Z (about 2 months ago)
- Topics: datomic, history, rewrite
- Language: Clojure
- Homepage:
- Size: 383 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README-test.sh
- License: LICENSE
Awesome Lists containing this project
README
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
rm -r "$DIR/temp" || true
mkdir -p $DIR/tempsed $DIR/README.md -ne '/```clojure/,/```/p' | \
sed 's/^```$//g' | \
awk -v RS='```clojure' '{ print $0 > "'$DIR'/temp/temp" NR }'VERSION=$(clojure -X:release ivarref.pom-patch/get-version)
cd temp
rm temp1
for entry in temp*
do
perl -pe 's|\QREAL_JDBC_URL_HERE\E|'$(cat ../.stage-url.txt)'|g' $entry > $entry.clj
rm $entry
echo "Running $entry.clj ..."
clojure -Sdeps '{:deps {no.nsd/rewriting-history {:mvn/version "'$VERSION'"}
ivarref/recurring-cup {:mvn/version "0.4.52"}
com.datomic/datomic-pro {:mvn/version "1.0.6202"}
org.mariadb.jdbc/mariadb-java-client {:mvn/version "2.4.3"}}
:mvn/repos {"my.datomic.com" {:url "https://my.datomic.com/repo"}}}'\
-M \
-e "$(cat $entry.clj)\n\n(shutdown-agents)\n(System/exit 0)" || { echo "$entry.clj Failed!"; exit 1; }
echo "Running $entry.clj ... OK!"
rm $entry.clj
done