This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-10-06
Channels
- # aleph (79)
- # bangalore-clj (3)
- # beginners (49)
- # boot (74)
- # cider (10)
- # cljs-dev (21)
- # cljsrn (2)
- # clojure (105)
- # clojure-berlin (1)
- # clojure-brasil (1)
- # clojure-dusseldorf (1)
- # clojure-korea (1)
- # clojure-poland (3)
- # clojure-russia (38)
- # clojure-spec (146)
- # clojure-uk (20)
- # clojurescript (70)
- # cloverage (1)
- # component (1)
- # core-async (23)
- # css (16)
- # cursive (22)
- # datascript (1)
- # datomic (22)
- # defnpodcast (6)
- # emacs (60)
- # events (1)
- # hoplon (94)
- # jobs (1)
- # jobs-rus (13)
- # luminus (11)
- # off-topic (11)
- # om (48)
- # onyx (5)
- # proton (7)
- # re-frame (87)
- # reagent (39)
- # rethinkdb (1)
- # ring-swagger (14)
- # rum (6)
- # specter (14)
- # untangled (105)
- # vim (6)
- # yada (22)
@tony.kay that's pretty awesome!
"Assumes that the Datomic schema makes use of the :entity/attribute convention for all attributes." -- that's a pretty strong assumption though
it is a strong assumption. as a data point, we have over 600 attrs and they all follow that convention
as another data point, we do use the entity-type/attribute
convention, but we sometimes mix-in several entity types for the same entity, i.e {:animal/sound "woof" :dog/breed "labrador"}
so not sure it complies to said constraint
@val_waeselynck are you working at a pet shop?
@pesterhazy not at all, but mentioning attributes we actually use would be leaking IP
sorry was just a joke
(just kidding, really it's just that it seemed more clear)
FWIW, we also use the :entity-type/attr
convention
@robert-stuttaford greetings! how do you handle ordinal :db/isComponent false
entities? I end up wrapping those in
{:ordinal/idx 2
:ordinal/ref [:user/email ""]}
are there any sound alternatives to this?one example is cross-cutting attributes, like a created-at
attribute
@val_waeselynck the mixed attr case you listed above would be fine as far as the sql-datomic tool is concerned. it is mainly the case where there is no namespace for an attribute that the tool might not take into account.
does the tool use pull syntax or datalog to pull in attributes?
@misha i’m not sure i understand your question
@pesterhazy It grabs the entities with non-pull syntax and then filters out attrs.
it uses d/entity
? I see
it's important as for handling of missing attributes (NULL columns)