This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-01-29
Channels
- # aatree (1)
- # admin-announcements (7)
- # announcements (3)
- # beginners (125)
- # boot (164)
- # braid-chat (8)
- # cider (26)
- # cljsrn (37)
- # clojars (3)
- # clojure (162)
- # clojure-argentina (1)
- # clojure-art (2)
- # clojure-berlin (5)
- # clojure-czech (3)
- # clojure-ireland (1)
- # clojure-miami (1)
- # clojure-norway (9)
- # clojure-russia (47)
- # clojurebridge (1)
- # clojurescript (151)
- # community-development (1)
- # conf-proposals (80)
- # core-async (15)
- # core-matrix (1)
- # cursive (66)
- # datomic (26)
- # emacs (17)
- # events (10)
- # funcool (59)
- # hoplon (43)
- # incanter (2)
- # jobs (10)
- # ldnclj (8)
- # lein-figwheel (18)
- # luminus (1)
- # off-topic (19)
- # om (144)
- # onyx (167)
- # overtone (9)
- # parinfer (12)
- # pedestal (1)
- # proton (158)
- # re-frame (139)
- # reagent (48)
- # test-check (19)
- # testing (43)
Thanks Stuart, glad to get a second opinion on it. It just felt like maybe I was missing something, but I guess not!
@meow: I did smth like this:
- run transactor.cmd
with dev-transactor-template.properties
- run shell.cmd
and import demo data in there
- run console.cmd
to see console in browser
Then I was able to see smth in action But documentation is not clear here š
https://clojurians.slack.com/archives/datomic/p1453931405000091
@robert-stuttaford: greetings! I saw you asked @tonsky whether datomic<->datascript sync is a solved problem or not. What is the outcome of that? Are there any good approaches, or did it turn out to be way to specific to a particular project needs to have something useful to share? thanks
Has anyone ever had to implement something thatās just like :db.fn/cas
, only retracts the fact if and only if the current value matches? Bascially, allowing ānew valueā to be effectively nil
?
@jgdavey: If the value in the [:db/retract E A V] doesnt match, you just get an empty transaction
i.e. you want something to throw or error if you try to retract a non-existant value?
The specific thing is: I have an expirable token. When that token is used in one transaction, and is retracted in the same transaction.
I want to ensure that token is valid (in an atomic sense) so that it canāt be used twice
Ah. Iād say probably a good candidate for a check and retract inside a custom tx function
specifies that "You can use them to ensure atomic read-modify-update processing, and integrity constraints. (To abort a transaction, simply throw an exception)."
This page http://docs.datomic.com/exceptions.html also provides some additional info on how exceptions are propagated back to the peer from the transactor