Discussion:
Double retracts showing up in tx log
Dustin Getz
2017-10-25 21:35:26 UTC
Permalink
Is :db/add a database function? Please help me understand why this is
happening. They show up in the log too.


@(d/transact (d/connect (str transactor-uri "seattle"))
[[:db/retract 17592186045544 :neighborhood/name "Magnolia"]
[:db/add 17592186045544 :neighborhood/name "asdf"]])
=>
{:db-before datomic.db.Db,
@1042adde :db-after,
datomic.db.Db @1d06905b,
:tx-data [#datom[13194139534556 50 #inst"2017-10-25T21:17:06.033-00:00" 13194139534556 true]
#datom[17592186045544 72 "Magnolia" 13194139534556 false]
#datom[17592186045544 72 "asdf" 13194139534556 true]
#datom[17592186045544 72 "Magnolia" 13194139534556 false]],
:tempids {}}
--
You received this message because you are subscribed to the Google Groups "Datomic" group.
To unsubscribe from this group and stop receiving emails from it, send an email to datomic+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Marshall Thompson
2017-10-26 13:32:00 UTC
Permalink
Hi Dustin,

Thanks for reporting this. We're looking into the behavior.

-Marshall
Post by Dustin Getz
Is :db/add a database function? Please help me understand why this is
happening. They show up in the log too.
@(d/transact (d/connect (str transactor-uri "seattle"))
[[:db/retract 17592186045544 :neighborhood/name "Magnolia"]
[:db/add 17592186045544 :neighborhood/name "asdf"]])
=>
{:db-before datomic.db.Db,
@1042adde :db-after,
:tx-data [#datom[13194139534556 50 #inst"2017-10-25T21:17:06.033-00:00" 13194139534556 true]
#datom[17592186045544 72 "Magnolia" 13194139534556 false]
#datom[17592186045544 72 "asdf" 13194139534556 true]
#datom[17592186045544 72 "Magnolia" 13194139534556 false]],
:tempids {}}
--
You received this message because you are subscribed to the Google Groups "Datomic" group.
To unsubscribe from this group and stop receiving emails from it, send an email to datomic+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...