clockworklabs / SpacetimeDB

Multiplayer at the speed of light
https://spacetimedb.com
Other
4.41k stars 110 forks source link

Implement DataStore trait for Tx/MutTx #1967

Open mamcx opened 1 week ago

mamcx commented 1 week ago

Description of Changes

First step into the integration of the new query planner.

This implement the new DataStore trait for both Tx/MutTx and introduce a new Query<Tx | MutTc> struct that implement the internal query methods. This will eliminate the need of having the many iter / iter_mut versions around.

NOTE: Is draft because wanna coordinate how will be the direction with @joshua-spacetime, because this is part of a large set of steps for the new query engine. That is why not documentation is written.

Expected complexity level and risk

1

Testing