Migration tool for Datahike from and to other databases.
Make sure your source and target databases exist. You can run the migration on the commandline:
lein run -s datomic-cloud.edn -t datahike-pg.edn
Use lein run -- -h
for further instructions. See the *-example.edn
files for dataomic-cloud
and datahike-pg
example configurations.
Alternatively open your Clojure project, add io.lambdaforge/wanderung
to your dependencies, and start a REPL:
(require '[wanderung.core :as w])
(def datomic-cfg {:wanderung/type :datomic
:name "your-database"
:server-type :ion
:region "eu-west-1"
:system "your-system"
:endpoint "http://entry.your-system.eu-west-1.datomic.net:8182/"
:proxy-port 8182})
(def datahike-cfg {:wanderung/type :datahike
:store {:backend :file
:path "/your-data-path"}
:name "from-datomic"
:schema-flexibility :write
:keep-history? true})
;; if the database doesn't exist, wanderung will create a Datahike database
(w/migrate datomic-cfg datahike-cfg)
Before using Wanderung for performing a migration, you may wish to run tests that to check that Wanderung works correctly. In order to do so, you need to perform the following steps:
lein test
. In case they fail or in case there are errors, do lein clean
and attempt to run the tests again.Copyright © 2020 lambdaforge UG (haftungsbeschränkt)
This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at http://www.eclipse.org/legal/epl-2.0.
This Source Code may also be made available under the following Secondary Licenses when the conditions for such availability set forth in the Eclipse Public License, v. 2.0 are satisfied: GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version, with the GNU Classpath Exception which is available at https://www.gnu.org/software/classpath/license.html.
Can you improve this documentation? These fine people already did:
Konrad Kühne & Jonas ÖstlundEdit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close