This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-06-10
Channels
- # announcements (2)
- # asami (2)
- # babashka (29)
- # beginners (115)
- # cider (5)
- # clara (9)
- # cljdoc (14)
- # cljs-dev (1)
- # cljsrn (18)
- # clojars (3)
- # clojure (73)
- # clojure-australia (7)
- # clojure-europe (74)
- # clojure-nl (3)
- # clojure-norway (8)
- # clojure-spec (3)
- # clojure-uk (36)
- # clojured (1)
- # clojurescript (15)
- # conjure (18)
- # datomic (6)
- # deps-new (11)
- # depstar (7)
- # fulcro (2)
- # instaparse (1)
- # jobs (9)
- # nrepl (8)
- # off-topic (21)
- # pathom (5)
- # polylith (42)
- # proletarian (1)
- # rdf (10)
- # re-frame (2)
- # react (1)
- # reagent (20)
- # releases (3)
- # remote-jobs (4)
- # rum (9)
- # shadow-cljs (79)
- # sql (11)
- # tools-deps (64)
- # vim (3)
- # xtdb (26)
is it possible to undivert
a datomic system, which has been diverted by datomic.dev-local/divert-system
,
or should i restart my repl, if i want to do another datomic.dev-local/import-cloud
for example?
im also getting an error like this:
Execution error (IllegalArgumentException) at datomic.dev-local.impl/fn (impl.clj:490).
This client does not support dev-local import.
from import-cloud
:
(dl/import-cloud
{:source {:server-type :ion,
:region "ap-southeast-1",
:system "XXX",
:endpoint " ",
:proxy-port 8182,
:db-name "DBDBDB"}
:dest {:server-type :dev-local
:storage-dir :mem
:system "tmp"
:db-name "copy1"}
:filter {}})
i've tried both com.datomic/client-cloud
v`0.8.102` and v`0.8.105`; same error.ah, it seems, i can't import into an in-memory dev-local system 😞
if i use (str (io/file (System/getProperty "user.home") ".datomic" "local"))
instead of :mem
, then the import succeeds.
in the https://docs.datomic.com/cloud/dev-local.html#import-cloud example, the source and the destination datomic :system
names and :db-name
s are different.
do i understand well, that if i want to use dl/divert-system
, then my imported copy should have the same :system
and :db-name
?
it feels very error-prone, because if i forget to call diver-system
, i might end up modifying the cloud db, instead of the local copy and im not sure how would i even notice the mistake.
are there any videos / articles demonstrating this workflow?