This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-05-03
Channels
- # admin-announcements (6)
- # beginners (73)
- # boot (84)
- # cider (9)
- # cljs-edn (5)
- # cljs-site (8)
- # cljsrn (2)
- # clojure (158)
- # clojure-austin (1)
- # clojure-canada (1)
- # clojure-dusseldorf (2)
- # clojure-ireland (1)
- # clojure-russia (45)
- # clojure-sg (2)
- # clojure-uk (28)
- # clojurebridge (2)
- # clojurescript (142)
- # core-async (43)
- # cursive (23)
- # datascript (5)
- # datomic (9)
- # dirac (4)
- # emacs (23)
- # funcool (1)
- # garden (1)
- # hoplon (280)
- # jobs (1)
- # ldnclj (6)
- # leiningen (37)
- # luminus (6)
- # om (30)
- # om-next (1)
- # onyx (6)
- # perun (24)
- # re-frame (10)
- # reagent (20)
- # remote-jobs (1)
- # rethinkdb (2)
- # ring-swagger (4)
- # rum (3)
- # spacemacs (6)
- # untangled (36)
- # yada (5)
It serialized transactions to dev or another storage, not to mem, And yeah anon fns not passable to tx functions over wire.
In all of:
http://docs.datomic.com/excision.html
The partitions are specified without a keyword (missing colon). Is this a mistake? On other pages it's all like :db/id[:db.part/db]
Anyone have any experience enforcing composite unique attributes? The documentation briefly alludes to transaction functions, but I’m not sure where to go from there.
@pheuter: there are really basic examples in Clojure https://github.com/Datomic/day-of-datomic/blob/master/tutorial/transaction_function_exceptions.clj#L15 and Java https://github.com/Datomic/datomic-java-examples/blob/master/src/java/datomic/samples/TxFunctions.java#L37 but in practice I think many people lean more on defining an additional attribute for the composite key (i.e. a concatenated string).
@bkamphaus: thanks! will take a look. also interesting point about a composite attribute that serves as a concatenation.
Careful when you're choosing the attributes to concat--unless they've changed the contract, you can't rely on :db/ids to stay the same across db restores
right, don’t use entity id as an external identifier in general. :db/id isn’t an attribute.