rocicorp / repc

The canonical Replicache client, implemented in Rust.
Other
31 stars 7 forks source link

make a separate transaction type for index changes #260

Closed phritz closed 3 years ago

phritz commented 3 years ago

two separate logical commits.

@arv this is a breaking change. you now have to open index transactions with openindextransaction. they are closed the same as normal transactions with committransaction. now you can no longer do index changes in regular transactions or put/dels in index transactions. i have separated index change commits into their own commit type separate from local commits. this means that A) index changes are not returned for replay by maybeendsync and B) the customer does not have to have data layer mutators for index changes. yay!

progress towards #218

closes https://github.com/rocicorp/repc/issues/257