This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-05-21
Channels
- # aws (2)
- # bangalore-clj (1)
- # beginners (25)
- # boot (2)
- # cider (176)
- # clara (73)
- # cljs-dev (6)
- # cljsrn (31)
- # clojure (40)
- # clojure-greece (9)
- # clojure-india (1)
- # clojure-italy (14)
- # clojure-nl (9)
- # clojure-russia (4)
- # clojure-uk (156)
- # clojurescript (124)
- # core-async (37)
- # cursive (2)
- # data-science (2)
- # datomic (22)
- # emacs (3)
- # fulcro (32)
- # graphql (6)
- # java (3)
- # lein-figwheel (19)
- # lumo (29)
- # nyc (1)
- # off-topic (9)
- # onyx (15)
- # portkey (12)
- # precept (2)
- # re-frame (15)
- # reagent (10)
- # rum (7)
- # schema (2)
- # shadow-cljs (48)
- # tools-deps (35)
- # yada (1)
I would wait for the debate to settle before doing anything. At the moment much is unclear, a simple retract might be enough.
hi @marshall - i was wondering if any progress was made investigating multiple datomic cloud clients not fetching the latest version of the database using d/db
without first "updating" the connection with a bogus call to d/q
? https://stackoverflow.com/questions/50347307/how-do-i-keep-two-datomic-cloud-clients-in-sync
maybe there's an issue we can track? ๐ we've had to build a phantom query into our API library that gets called every time before a pull is performed (with the other option being to reconnect before each query).
Hi i just accidentally called retractEntity on half my development database without making a backup. Is it possible to undo all that ? I can ditch all transactions that happened since that transaction.
you can take the set of datoms from that last transaction (use the log API to get the last transaction)
https://stackoverflow.com/questions/25389807/how-do-i-undo-a-transaction-in-datomic @jdkealy
What's the most natural way to store an array of entities in Datomic? I'm trying to come up with a way to model a manually sorted list of items. First I thought giving every item a "sort id" integer that can be adjusted when a user drags and drops it, but I can't see how to painlessly deal with "no more integers between two items you're trying to drop your item between".
You can either do ordinals for indexing or a linked list approach
Both have pros and cons
@alexmiller Thanks
@dottedmag https://github.com/vvvvalvalval/datofu supports ordinals and https://github.com/dwhjames/datomic-linklist does linked list. I have been using linked-list but it makes datalog queries tricky so Iโll probably switch to ordinals soon
Is there a secret Javascript datomic client that it is possible to get access to?
"No"
Datomic client use HTTP
https://mvnrepository.com/artifact/com.datomic/clj-client
You can inspect some jars, find the clj
files, checkout the http calls and reimplement in cljs
Remember: There is no stable/public api yet, it may change/break on any update.
Yeah, I have been through those, it seems super apparent that an internal/unreleased javascript client exists
@U09K620SG how so?