-
Notifications
You must be signed in to change notification settings - Fork 4
Support migration to datomic, support for saving datoms in nippy, refactoring of core #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
kordano
merged 11 commits into
lambdaforge:master
from
jonasseglare:transact-to-datomic
Jun 30, 2021
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
ca8c3a9
Add function transaction-datoms-to-datomic
e66ac3f
Fix value entity id bug
7cff4a6
Refactor wanderung.core and support nippy
f799cb6
Comment-out redundant code
9869447
add Datomic dev-local tests
kordano e68a88d
add history test
kordano 94441b3
add datahike extraction
kordano 2f71730
add datahike<->datomic tests
kordano cae3e4a
Fix: Refer to datahike.api namespace using d/ instead of dh/
a5d6d5b
Document how to run tests
fe35e02
Add pom.xml and don't ignore it
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,6 @@ | |
/classes | ||
/checkouts | ||
profiles.clj | ||
pom.xml | ||
pom.xml.asc | ||
*.jar | ||
*.class | ||
/.lein-* | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
;; Store the raw datoms as nippy-encoded data in a file. | ||
{:wanderung/type :nippy | ||
:filename "backups/mybackup.nippy"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>io.lambdaforge</groupId> | ||
<artifactId>wanderung</artifactId> | ||
<packaging>jar</packaging> | ||
<version>0.1.1-SNAPSHOT</version> | ||
<name>wanderung</name> | ||
<description>Data migration tool for Datahike</description> | ||
<url>http://example.com/FIXME</url> | ||
<licenses> | ||
<license> | ||
<name>EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0</name> | ||
<url>https://www.eclipse.org/legal/epl-2.0/</url> | ||
</license> | ||
</licenses> | ||
<scm> | ||
<url>https://github.com/lambdaforge/wanderung</url> | ||
<connection>scm:git:git://github.com/lambdaforge/wanderung.git</connection> | ||
<developerConnection>scm:git:ssh://git@github.com/lambdaforge/wanderung.git</developerConnection> | ||
<tag>a5d6d5b6e2f3018a996dd2aad04d477938900aeb</tag> | ||
</scm> | ||
<build> | ||
<sourceDirectory>src</sourceDirectory> | ||
<testSourceDirectory>test</testSourceDirectory> | ||
<resources> | ||
<resource> | ||
<directory>resources</directory> | ||
</resource> | ||
</resources> | ||
<testResources> | ||
<testResource> | ||
<directory>resources</directory> | ||
</testResource> | ||
</testResources> | ||
<directory>target</directory> | ||
<outputDirectory>target/classes</outputDirectory> | ||
<plugins/> | ||
</build> | ||
<repositories> | ||
<repository> | ||
<id>central</id> | ||
<url>https://repo1.maven.org/maven2/</url> | ||
<snapshots> | ||
<enabled>false</enabled> | ||
</snapshots> | ||
<releases> | ||
<enabled>true</enabled> | ||
</releases> | ||
</repository> | ||
<repository> | ||
<id>clojars</id> | ||
<url>https://repo.clojars.org/</url> | ||
<snapshots> | ||
<enabled>true</enabled> | ||
</snapshots> | ||
<releases> | ||
<enabled>true</enabled> | ||
</releases> | ||
</repository> | ||
</repositories> | ||
<dependencyManagement> | ||
<dependencies/> | ||
</dependencyManagement> | ||
<dependencies> | ||
<dependency> | ||
<groupId>org.clojure</groupId> | ||
<artifactId>clojure</artifactId> | ||
<version>1.10.1</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.replikativ</groupId> | ||
<artifactId>datahike-jdbc</artifactId> | ||
<version>0.1.2-SNAPSHOT</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.replikativ</groupId> | ||
<artifactId>datahike</artifactId> | ||
<version>0.3.3-SNAPSHOT</version> | ||
<exclusions> | ||
<exclusion> | ||
<artifactId>konserve</artifactId> | ||
<groupId>io.replikativ</groupId> | ||
</exclusion> | ||
</exclusions> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.datomic</groupId> | ||
<artifactId>client-cloud</artifactId> | ||
<version>0.8.78</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.datomic</groupId> | ||
<artifactId>client-pro</artifactId> | ||
<version>0.9.63</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.datomic</groupId> | ||
<artifactId>dev-local</artifactId> | ||
<version>0.9.232</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.cognitect</groupId> | ||
<artifactId>transit-clj</artifactId> | ||
<version>0.8.313</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.taoensso</groupId> | ||
<artifactId>nippy</artifactId> | ||
<version>3.1.1</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.clojure</groupId> | ||
<artifactId>tools.cli</artifactId> | ||
<version>1.0.206</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.clojure</groupId> | ||
<artifactId>test.check</artifactId> | ||
<version>0.9.0</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>lambdaisland</groupId> | ||
<artifactId>kaocha</artifactId> | ||
<version>1.0.632</version> | ||
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
</project> | ||
|
||
<!-- This file was autogenerated by Leiningen. | ||
Please do not edit it directly; instead edit project.clj and regenerate it. | ||
It should not be considered canonical data. For more information see | ||
https://github.com/technomancy/leiningen --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[[13194139534312 :db/txInstant #inst "2021-06-02T09:45:14.334-00:00" 13194139534312 true] [17592186045417 :db/ident :small 13194139534312 true] [17592186045418 :db/ident :medium 13194139534312 true] [17592186045419 :db/ident :large 13194139534312 true] [17592186045420 :db/ident :xlarge 13194139534312 true] [17592186045421 :db/ident :shirt 13194139534312 true] [17592186045422 :db/ident :pants 13194139534312 true] [17592186045423 :db/ident :dress 13194139534312 true] [17592186045424 :db/ident :hat 13194139534312 true] [17592186045425 :db/ident :red 13194139534312 true] [17592186045426 :db/ident :green 13194139534312 true] [17592186045427 :db/ident :blue 13194139534312 true] [17592186045428 :db/ident :yellow 13194139534312 true] [13194139534325 :db/txInstant #inst "2021-06-02T09:45:14.354-00:00" 13194139534325 true] [0 :db.install/attribute 72 13194139534325 true] [0 :db.install/attribute 73 13194139534325 true] [0 :db.install/attribute 74 13194139534325 true] [0 :db.install/attribute 75 13194139534325 true] [72 :db/unique :db.unique/identity 13194139534325 true] [72 :db/ident :inv/sku 13194139534325 true] [72 :db/cardinality :db.cardinality/one 13194139534325 true] [72 :db/valueType :db.type/string 13194139534325 true] [73 :db/cardinality :db.cardinality/one 13194139534325 true] [73 :db/valueType :db.type/ref 13194139534325 true] [73 :db/ident :inv/color 13194139534325 true] [74 :db/valueType :db.type/ref 13194139534325 true] [74 :db/cardinality :db.cardinality/one 13194139534325 true] [74 :db/ident :inv/size 13194139534325 true] [75 :db/cardinality :db.cardinality/one 13194139534325 true] [75 :db/valueType :db.type/ref 13194139534325 true] [75 :db/ident :inv/type 13194139534325 true] [13194139534326 :db/txInstant #inst "2021-06-02T09:45:14.382-00:00" 13194139534326 true] [17592186045431 :inv/color 17592186045425 13194139534326 true] [17592186045431 :inv/type 17592186045421 13194139534326 true] [17592186045431 :inv/sku "SKU-0" 13194139534326 true] [17592186045431 :inv/size 17592186045417 13194139534326 true] [17592186045432 :inv/size 17592186045417 13194139534326 true] [17592186045432 :inv/sku "SKU-1" 13194139534326 true] [17592186045432 :inv/color 17592186045425 13194139534326 true] [17592186045432 :inv/type 17592186045422 13194139534326 true] [17592186045433 :inv/type 17592186045423 13194139534326 true] [17592186045433 :inv/size 17592186045417 13194139534326 true] [17592186045433 :inv/color 17592186045425 13194139534326 true] [17592186045433 :inv/sku "SKU-2" 13194139534326 true] [17592186045434 :inv/sku "SKU-3" 13194139534326 true] [17592186045434 :inv/color 17592186045425 13194139534326 true] [17592186045434 :inv/size 17592186045417 13194139534326 true] [17592186045434 :inv/type 17592186045424 13194139534326 true] [17592186045435 :inv/sku "SKU-4" 13194139534326 true] [17592186045435 :inv/type 17592186045421 13194139534326 true] [17592186045435 :inv/color 17592186045425 13194139534326 true] [17592186045435 :inv/size 17592186045418 13194139534326 true]] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Including this file in the project makes it possible to refer to the project from
deps.edn
, e.g.io.lambdaforge/wanderung {:git/url "https://github.com/jonasseglare/wanderung" :sha "fe35e0282f787d7f519acc9201ee99eb3eb881ec"}}
.