Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Creates a small sample program with a Rust server and C# client that tests various subscriptions and outputs the results to the CLI.
Description of Changes
This is a new example project that is used to test subscription multiplicity.
It currently tests for 2 scenarios:
A single subscription handle, using an array of subscription query with overlapping content against a single table.
Data is modified on the server that results in both additions and removal of items from the scope of subscribed data, and the results are validated.
2 subscription handles, each with a single subscription query against a single table, with overlapping content.
Data is modified on the server that results in both additions and removal of items from the scope of subscribed data, and the results are validated. One of the subscription handles is unsubscribed to, and the results are validated.
Building the Rust server and then running the C# client from CLI will output the tests and results to the terminal.
API
Requires SpacetimeDB PRs
SpacetimeDB: jsdt/multi-subscribe
com.clockworklabs.spacetimedbsdk: jgilles/unsubscribe-fix
Testsuite
SpacetimeDB branch name: jsdt/multi-subscribe
Testing
This example project is a test itself.