Discussion:
tempids docstring
Leon Grapenthin
2017-06-26 11:18:33 UTC
Permalink
"Values of n from -1 to -1000000, inclusive, are reserved for
user-created tempids."

However, starting at a new REPL (d/tempid :db.part/user)
=> #db/id[:db.part/user -1000000]
--
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.
Linus Ericsson
2017-06-26 17:27:47 UTC
Permalink
yes, that's where they start when you don't given them an explicit number!

or did you mean that -1 to -100000 (exclusive) would be more correct?
Indeed so.

/Linus
Post by Leon Grapenthin
"Values of n from -1 to -1000000, inclusive, are reserved for
user-created tempids."
However, starting at a new REPL (d/tempid :db.part/user)
=> #db/id[:db.part/user -1000000]
--
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
For more options, visit https://groups.google.com/d/optout.
--
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.
Linus Ericsson
2017-06-26 17:28:20 UTC
Permalink
I meant of course "-1 to -1000000" (minus one million).
Post by Linus Ericsson
yes, that's where they start when you don't given them an explicit number!
or did you mean that -1 to -100000 (exclusive) would be more correct?
Indeed so.
/Linus
Post by Leon Grapenthin
"Values of n from -1 to -1000000, inclusive, are reserved for
user-created tempids."
However, starting at a new REPL (d/tempid :db.part/user)
=> #db/id[:db.part/user -1000000]
--
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
For more options, visit https://groups.google.com/d/optout.
--
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.
Leon Grapenthin
2017-06-27 15:04:17 UTC
Permalink
Changing it to exclusive now would be a breaking change. The behavior of
d/tempid I illustrated should be fixed to start at -1000001 instead.
Post by Linus Ericsson
I meant of course "-1 to -1000000" (minus one million).
Post by Linus Ericsson
yes, that's where they start when you don't given them an explicit number!
or did you mean that -1 to -100000 (exclusive) would be more correct?
Indeed so.
/Linus
Post by Leon Grapenthin
"Values of n from -1 to -1000000, inclusive, are reserved for
user-created tempids."
However, starting at a new REPL (d/tempid :db.part/user)
=> #db/id[:db.part/user -1000000]
--
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
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the
Google Groups "Datomic" group.
To unsubscribe from this topic, visit https://groups.google.com/d/
topic/datomic/t4ZV97xIxMY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
For more options, visit https://groups.google.com/d/optout.
--
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...