Fork me on GitHub

Hi, I'm using datomic on-prem with dynamoDB as backend and I have a function c/uuid which creates a random uuid (which namespace is not at transactor classpath!). I must pass some uuids to a transactor function tx-f, could I use a lazy-seq created with repeatedly as arg (e.g uuids) to tx-f and, as a example, use (take 4 uuids) inside tx-f?


Hi, question about retracting an entity: Using a pull query in the form of (d/pull db '[*] eid) after having the entity retracted using the same eid yields the :db/id. Since I was expecting it to return nil, why does it not?


@atwrdik Are you using the DB from before it was deleted?


You need to reacquire the DB from the connection to get the current one.


@atwrdik this is an implementation detail


if an entity ever had assertions, you will get {:db/id x}; otherwise you will get nil


entity ids don't exist or not exist; the only meaningful question is whether anything is asserted of them


@henrik I'm already using the DB after it was retracted.


@favila So retracting only "removes" all attributes and their corresponding values from the entity (as well as references)? So an entity not having an attribute can be treated as if it is not existent?


the only thing that exists is assertions [e a v tx op]


Thank you for the clarification. The links helped a lot. The last paragraph in the documentation here ( also was quite helpful.