* Begin revising rust client quickstart: update the code
* Revise Rust client SDK quickstart
A whole bunch of stuff has changed since this document was last updated.
Notably, I've chosen to re-order a bunch of sections,
since the previous structure of the document doesn't make much sense
after the 0.12 API rework.
* Fix credentials import issue
There are still warnings here but it builds now
* Fix warnings after pasting all this code into a fresh project
---------
Co-authored-by: John Detter <4099508+jdetter@users.noreply.github.com>
## Description of Changes
Adds closing `</summary>` to end of comment.
## API
No breaking changes
## Requires SpacetimeDB PRs
N/A
## Testsuite
*If you would like to run the your SDK changes in this PR against a
specific SpacetimeDB branch, specify that here. This can be a branch
name or a link to a PR.*
SpacetimeDB branch name: master
## Testing
Just fixing a comment. No tests required.
## Description of Changes
Updates comment on `SubscribeToAllTables` since undefined behavior is not possible anymore.
No code changes made in this patch.
## API
- [ ] This is an API breaking change to the SDK
*If the API is breaking, please state below what will break*
## Requires SpacetimeDB PRs
N/A
## Testsuite
*If you would like to run the your SDK changes in this PR against a
specific SpacetimeDB branch, specify that here. This can be a branch
name or a link to a PR.*
SpacetimeDB branch name: master
## Testing
No code changes made in this patch.
* Initial code pass on updating server to 1.0.0
* Updated to work with current 1.0.0-rc4, master branches of SpacetimeDB and the CSharpSDK
* Minor edit for clarity
* No longer optional, ReducerContext is always the first argument
Co-authored-by: Phoebe Goldman <phoebe@goldman-tribe.org>
* Improved description of OnInsert and OnDelete callbacks
Co-authored-by: Phoebe Goldman <phoebe@goldman-tribe.org>
* Fixed capitalization.
Co-authored-by: Phoebe Goldman <phoebe@goldman-tribe.org>
* Fixed capitalization.
Co-authored-by: Phoebe Goldman <phoebe@goldman-tribe.org>
* SDK language corrected and clarified.
Co-authored-by: Phoebe Goldman <phoebe@goldman-tribe.org>
* Added that the example is for the C# client and does not include server examples.
Co-authored-by: Phoebe Goldman <phoebe@goldman-tribe.org>
* Added comma for clarity
Co-authored-by: Phoebe Goldman <phoebe@goldman-tribe.org>
* Added comma for clarity
Co-authored-by: Phoebe Goldman <phoebe@goldman-tribe.org>
* Applied requested changes to improve clarity
* Revised the SDK Client Quickstart to be more-in-line with the Rust Client Quickstart flow
* Added comments to code
* Replaced <module-name> with quickstart-chat
---------
Co-authored-by: Phoebe Goldman <phoebe@goldman-tribe.org>
* Regen the api types from the server.
* fmt the client api code
* Use the multi versions of subscription messages.
* Add ref counting of rows and delay callbacks.
* WIP debugging tests.
* Regen test app
* A lot of changes.
* Use new subscription api.
* remove commented out code.
* Fix update and cleanup.
* Fix path to spacetimedb
* Run tests before checking diff in CI
* Update packages/sdk/tests/db_connection.test.ts
Co-authored-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com>
* Update packages/sdk/tests/db_connection.test.ts
Co-authored-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com>
* Update packages/sdk/tests/db_connection.test.ts
Co-authored-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com>
* Update packages/sdk/tests/db_connection.test.ts
Co-authored-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com>
* Various cleanups.
* Comment out the CI test for the generated code being up to date.
* Regen.
* Add sed command.
---------
Co-authored-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com>
## Description of Changes
Add SubscribeMulti and UnsubscribeMulti from upstream.
Fix unsubscribe bug found by testing against Bitcraft: Calling
`UnsubscribeThen` with any (non-null) callback would result in an
exception incorrectly telling the user that `Unsubscribe` had been
called twice.
Multiplicity support is implemented with unit tests + manual testing of
quickstart-chat.
Also, rows in the client cache are now looked up by primary key if
available, which I suspect is going to be a large performance boost.
## API
- [x] This is an API breaking change to the SDK
*If the API is breaking, please state below what will break*
## Requires SpacetimeDB PRs
*List any PRs here that are required for this SDK change to work*
## Testsuite
*If you would like to run the your SDK changes in this PR against a
specific SpacetimeDB branch, specify that here. This can be a branch
name or a link to a PR.*
SpacetimeDB branch name: jgilles/final-cs-codegen-changes
## Testing
*Write instructions for a test that you performed for this PR*
- [x] unit tests
- [ ] Working with Ryan to add a test suite.
- [x] blackholio