This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-05-25
Channels
- # announcements (21)
- # babashka (7)
- # beginners (27)
- # calva (7)
- # chlorine-clover (3)
- # cider (1)
- # clerk (21)
- # clojure (24)
- # clojure-europe (28)
- # clojure-finland (3)
- # clojure-nl (1)
- # clojure-norway (5)
- # clojure-uk (2)
- # clojurescript (13)
- # clr (2)
- # conjure (1)
- # consulting (1)
- # datahike (1)
- # datomic (13)
- # fulcro (3)
- # graalvm (33)
- # gratitude (7)
- # honeysql (7)
- # humbleui (12)
- # hyperfiddle (26)
- # interop (11)
- # introduce-yourself (4)
- # jobs-discuss (8)
- # lsp (26)
- # malli (6)
- # nbb (11)
- # polylith (26)
- # practicalli (1)
- # rdf (3)
- # re-frame (7)
- # reitit (10)
- # releases (2)
- # shadow-cljs (1)
- # tools-deps (15)
Hello Where can I find very basic releational datomic schema to study and inspect, I checked mbrainz and max datoms some schemas but they are came to me very comfusing and complex.
This isn't too basic, but this project in general really helpful for studying datomic + clojure -> https://github.com/PrecursorApp/precursor/blob/master/src/pc/datomic/schema.clj
https://schema-cartographer.com/ is a great tool for creating your own via a cartographer file (what you see and manipulate in the browser) and outputting that file to a datomic tx file. You can keep it small and simple and related to your particular domain namespaces which I find very helpful.
Why do these queries return different results?
(d/q '[:find ?n
:where
[?n :asset-tag/id #uuid "579aba41-21b3-4acd-9715-f3ba11b5777e"]]
(./db))
;; => #<java.util.HashSet@86b9d50 [[316659348802923]]>
(d/q '[:find ?n ?a
:where
[?n ?a #uuid "579aba41-21b3-4acd-9715-f3ba11b5777e"]]
(./db))
;; => #<java.util.HashSet@2f6fb0e5 []>
I expected the later to be the same as the first. I assume this is some kind of "don't scan the full db" thing, but shouldn't it throw then?Maybe it is and it's getting eaten... This is something i have noticed that I'm confused by in my dev env... We're wrapping the Datomic functions so my examples are misleading..(i forgot myself for a minute) Thanks for the input.
datomic-client and datomic-peer (maybe datomic on-prem vs cloud) have distinct results on this query @U09R86PA4 i dont remember exactly which combination results in which behavior. @U0DJ4T5U1 this query should do the job
(d/q '[:find ?n ?a
:where
[?a :db/ident]
[?n ?a #uuid "579aba41-21b3-4acd-9715-f3ba11b5777e"]]
db)
thanks souenzzo!
Hello! I'm having trouble downloading the datomic-pro
jar inside a Docker container
I'm using deps tools, the error message is
{:type java.util.concurrent.ExecutionException,
:message
"org.h2.jdbc.JdbcSQLException: Connection is broken: \"java.net.ConnectException: Connection refused (Connection ref
used): localhost:4335\" [90067-171]",
:at [java.util.concurrent.FutureTask report "FutureTask.java" 122]}