This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-05-20
Channels
- # announcements (27)
- # aws (1)
- # beginners (62)
- # boot (5)
- # calva (56)
- # clj-kondo (6)
- # cljdoc (3)
- # cljsrn (4)
- # clojure (65)
- # clojure-dev (17)
- # clojure-europe (2)
- # clojure-italy (17)
- # clojure-nl (24)
- # clojure-spec (30)
- # clojure-uk (14)
- # clojurescript (35)
- # clr (7)
- # cursive (8)
- # data-science (3)
- # datascript (38)
- # datomic (15)
- # emacs (16)
- # fulcro (34)
- # hyperfiddle (1)
- # immutant (1)
- # luminus (7)
- # nrepl (1)
- # off-topic (38)
- # pedestal (2)
- # planck (10)
- # re-frame (7)
- # reagent (7)
- # reitit (9)
- # shadow-cljs (36)
- # sql (19)
- # tools-deps (11)
- # vim (64)
- # xtdb (18)
For some reason I can't import datomic.client.impl.shared.Connection
and datomic.client.impl.shared.Db
, although these are the types that are returned to me when creating connections and dbs. Is there some reason this won't work, or do I just have a weird dependency problem?
(import datomic.client.impl.shared.Connection)
Execution error (ClassNotFoundException) at java.net.URLClassLoader/findClass (URLClassLoader.java:382).
(type (conn))
=> datomic.client.impl.shared.Connection
(type (d/db (conn)))
=> datomic.client.impl.shared.Db
oh i see, it's because Datomic's client classes are defined using deftype
, whereas presumably the on-prem ones are simply java classes. i needed to require datomic.client.impl.shared
in order to get those types
Is there a widely-used solution for managing schema migrations in Datomic Cloud? I used to use conformity with on-prem and was very happy with it
This doesn’t fit your “widely used” criteria, but I was able to rather easily adapt one of Stu’s examples to DCloud: https://gist.github.com/cjsauer/4dc258cb812024b49fb7f18ebd1fa6b5
Found the original inspiration: https://github.com/stuarthalloway/day-of-datomic/blob/master/src/datomic/samples/schema.clj
Hi, is there a way to lazily iterate through datoms of an index in a reverse order ? I'm using d/datoms
but can only get an iterator from it
Not at present.
In https://docs.datomic.com/cloud/tutorial/assertion.html#org0a2909b, sample-data is missing a closing parens right? seems minor but just in case its easy to fix 🙂
the docs so far have been great!