clockworklabs / SpacetimeDB

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

core: Expose snapshot taking on `Locking` datastore #1898

Closed kim closed 3 weeks ago

kim commented 4 weeks ago

Introduces a method on Locking to take a snapshot of the current committed state. Additionally a static method, so that the snapshot worker can use the same code.

This is useful for tooling, where it usually does not make sense to spin up a RelationalDB.