This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-03-13
Channels
- # admin-announcements (1)
- # beginners (53)
- # boot (355)
- # braid-chat (4)
- # cider (15)
- # cljsjs (3)
- # clojure (88)
- # clojure-austin (1)
- # clojure-new-zealand (4)
- # clojure-russia (46)
- # clojure-uk (7)
- # clojurescript (61)
- # component (2)
- # cursive (3)
- # data-science (5)
- # datomic (6)
- # dirac (49)
- # editors (8)
- # emacs (15)
- # funcool (15)
- # jobs (1)
- # ldnclj (10)
- # melbourne (1)
- # off-topic (14)
- # om (61)
- # om-next (2)
- # onyx (32)
- # re-frame (28)
- # reagent (19)
- # test200 (1)
- # vim (3)
I have a reference to an enum and I'm struggling to get the :db/ident
value of the enum inside a pull. Is it possible to do this, or should I just stick to the entity api?
codonnell: are you trying to get the ident for the attr's value instead of a map with {:db/ident .. :db/id ... } etc ? if so, i don't think that's possible
That ident behavior is the default behavior for the entity API. There's about equal preference in the community, and there is a corresponding split between the philosophies in pull and entity and how they return facts about entities.
@bkamphaus: I'm getting an error when trying to restore the mbrainz database. After downloading it and untarring, I run bin/datomic restore-db file:datomic-mbrainz-backup-20130611 datomic:
but get the error clojure.lang.ExceptionInfo: :restore/no-roots No restore points available at file:datomic-mbrainz-backup-20130611 {:uri "file:datomic-mbrainz-backup-20130611", :db/error :restore/no-roots}
. Any idea what went wrong?
Try the absolute path. A lot of people had size issues with the size of that db so the examples, etc. are all now tailored for a subset (info for it documented here: https://github.com/Datomic/mbrainz-sample ). There’s also an outstanding bug on windows where it will fail to restore unless you manually provide the t value as an argument.