This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-02-19
Channels
- # beginners (25)
- # boot (143)
- # braid-chat (9)
- # cider (18)
- # cljs-dev (88)
- # cljsrn (1)
- # clojure (91)
- # clojure-austin (2)
- # clojure-berlin (3)
- # clojure-japan (26)
- # clojure-russia (148)
- # clojurebridge (1)
- # clojured (29)
- # clojurescript (105)
- # cursive (7)
- # data-science (4)
- # datomic (15)
- # devcards (4)
- # emacs (8)
- # euroclojure (2)
- # events (1)
- # gsoc (27)
- # hoplon (3)
- # immutant (3)
- # ldnclj (3)
- # lein-figwheel (9)
- # leiningen (2)
- # luminus (1)
- # off-topic (5)
- # om (176)
- # onyx (136)
- # parinfer (16)
- # proton (13)
- # re-frame (33)
- # reagent (34)
- # spacemacs (1)
- # yada (127)
Is it possible to transact named query rules to the database, so you can avoid adding the % in your query, but still name them in your where-clause?
@casperc No. All query-time stuff lives in a peer. That includes any rules you bring to the party.
@jgdavey: Ok thanks, I just figured it would be able to fetch it like it is able to with database functions. But I guess that is a choice they made to not allow that.
@chadhs: not at present. That said, dropping history after a retention period is a feature that’s been requested several times and is under consideration.
Why does missing?
have special syntax like [(missing? $ ?product :product/parent)]
? Considering refs cannot ever have nil
, why doesn't Datomic just use the syntax [?product :product/parent nil]
instead?
@sdegutis less explicit?
I have a question about generating unique id's. Let's say I have a :person
-entity that needs an id I can query through :person/id
.
In my schema should I just enter:
{:db/id (d/squuid)
:db/ident :person/id
:db/valueType :db.type/uuid
:db/cardinality :db.cardinality/one
:db/unique :db.unique/identity
:db.install/_attribute :db.part/db}
I am hoping whenever I transact a new Person, Datomic automatically generates that id...
Does this make any sense, is there a better way of achieving this? (I'm very new to Datomic...)Once you have that :person/id
attribute available to you, you could create a “new” person like {:db/id (d/tempid :db.part/user), :person/id (d/squuid)}
Ok, thanks!
My code works 😄
feels like a very stupid question, now I understand the difference 😬