mentat/db
Richard Newman 9a12ced317 Don't allow callers to specify arbitrary new entity IDs. (#447) r=nalexander
This commit adds a check to the partition map that a provided entity ID
has been mentioned (i.e., is present in the start:index range of one of
our partitions).

We introduce a newtype for known entity IDs, using this internally in
the tx expander to track user-provided entids that have passed the above
check (and IDs that we allocate as part of tempid processing). This
newtype is stripped prior to tx assertion.

In order that DB tests can continue to write

  [:db/add 111 :foo/bar 222]

we add an additional fake partition to our test connections, ranging
from 100 to 1000.
2017-06-09 15:45:26 -07:00
..
src Don't allow callers to specify arbitrary new entity IDs. (#447) r=nalexander 2017-06-09 15:45:26 -07:00
tests Use Rc for TypedValue, Variable, and query Ident keywords. (#395) r=nalexander 2017-04-02 21:38:36 -07:00
Cargo.toml Bump dependency versions. r=bgrins. (#441) 2017-05-03 12:53:16 -07:00
README.md Start installing SQL schema. (#171) r=rnewman 2017-01-25 16:13:56 -08:00

This sub-crate implements the SQLite database layer: installing, managing, and migrating forward the SQL schema underlying the datom store.