mirror of
https://github.com/clockworklabs/SpacetimeDB.git
synced 2026-05-12 18:57:51 -04:00
2560846f22
# Description of Changes Client Query builder for rust, as per proposal - https://github.com/clockworklabs/SpacetimeDBPrivate/pull/2356. 1. Pach moves query builder to its separate crate, so that it can be shared between module and sdk. 2. Implements `TypedSubscriptionBuilder` in `sdks/rust` as mentioned in proposal 3. Modify codegen to extend types to support query builder as mentioned in proposal 4. a test # API and ABI breaking changes NA, additive changes. # Expected complexity level and risk 2 # Testing Added a test. --------- Signed-off-by: Shubham Mishra <shivam828787@gmail.com> Co-authored-by: joshua-spacetime <josh@clockworklabs.io>
This test client is used with two modules:
Currently, the bindings are generated using only one of those two modules,
chosen arbitrarily on each test run.
The two tests which use this client,
connect_disconnect_callbacks and connect_disconnect_callbacks_csharp,
are not intended to test code generation.
The goal of the two tests is to verify that module-side connect and disconnect events
fire when an SDK connects or disconnects via WebSocket,
and that the client can observe mutations performed by those events.
To (re-)generate the module_bindings, from this directory, run:
mkdir -p src/module_bindings
spacetime generate --lang rust \
--out-dir src/module_bindings \
--project-path ../../../../modules/sdk-test-connect-disconnect