* Added a preliminary llms.md/.txt file to the repo to help LLMs generate code for users and understand SpacetimeDB
* Update llms.md
Co-authored-by: Phoebe Goldman <phoebe@goldman-tribe.org>
* Addressed some feedback
* Fixed up some stuff
* Added TypeScript SDK code
* Added subscription semantics section and small fixes
* Added info about ConnectionId and the reducer context
* Addressed comments
---------
Co-authored-by: Phoebe Goldman <phoebe@goldman-tribe.org>
The version listed here was outdated and included bugs.
I don't even know why we'd recommend a specific version,
instead of just telling people to install the latest release.
* Updates to blackholio tutorials
Page 3 - Fix duplicate code in Rust "disconnect reducer" instructions.
Page 4 - Update use of `CallerIdentity` to `Sender` in C# instructions.
* Fixes from running through Blackholio tutorial in Rust and C# on 1.0.0
* Minor formatting updates
* Minor formatting update
* Another minor format change
* Whitespace fix.
Co-authored-by: John Detter <4099508+jdetter@users.noreply.github.com>
* Whitespace fix.
Co-authored-by: John Detter <4099508+jdetter@users.noreply.github.com>
* Whitespace fix.
Co-authored-by: John Detter <4099508+jdetter@users.noreply.github.com>
---------
Co-authored-by: John Detter <4099508+jdetter@users.noreply.github.com>
* Most of the way to C# Module SDK docs
* Copy in more docs
* Mostly done
* Remove dead docs
* Apply suggestions from code review
Thanks Mazdak, also going to apply some of these to the Rust modules.
Co-authored-by: Mazdak Farrokhzad <twingoow@gmail.com>
Co-authored-by: joshua-spacetime <josh@clockworklabs.io>
* Address review comments
---------
Co-authored-by: Mazdak Farrokhzad <twingoow@gmail.com>
Co-authored-by: joshua-spacetime <josh@clockworklabs.io>
* Multiplayer bug fix in tutorial
* Update part-4.md
Small fix
* removed reference to test input
This test input is not used during the tutorial and causes unused variable warnings
* Update part-4.md
* Remove hedging about table access from module quickstarts
We'll announce RLS when we announce it. For now, what we have is what we have.
* Remove hedging about supported module languages
This kind of thing belongs in a roadmap, not anywhere else in our docs.
* Fix :fingers_crossed: formatting of link to scheduled reducers
* Fix link
* List module langs in alphabetical order
Which also happens to be decreasing order of support and battle-tested-ness
* Re-order various and pages in sidebar
- Internals get their own section, and move down.
- Appendix gets its own section, instead of joining "Subscriptions."
- SQL and Subscriptions move up.
* Remove outdated guidance about tokens
We don't have "SpacetimeDB tokens" anymore, we just have regular OIDC JWTs.
We don't need to offer any special guidance about JWT hygiene.
Updates to blackholio tutorials
Page 3 - Fix duplicate code in Rust "disconnect reducer" instructions.
Page 4 - Update use of `CallerIdentity` to `Sender` in C# instructions.
* How-to: Incremental Migrations
This commit adds a how-to guide for defining "incremental migrations,"
a strategy for updating the schema of a database while maintaining compatibility
with outdated clients and without requiring a manual migration.
The code is not on GitHub yet,
as I'd like review on my choice of example before pushing the repository.
As such, the links to the code at the bottom of the new document are broken.
* Updates following review
* *Must* accept `ReducerContext`, not *may*
* Small fixes to Rust docs for database Identity and rename Address
* Update Rust SDK reference for various 1.0 API changes
* Fix broken links
* TOC and TODOs
* Rename `Address` to `ConnectionId` in index, fix some links
* Minor fixes I found while working through converting this to typescript
* Link to SQL ref
* Additional fixups found while rewriting TS ref
* Remove references to BitCraftMini
We no longer use this as an example.
Also, I'm pretty sure we stopped using that name ages ago.
* No UB from mixing `subscribe` and `subscribe_to_all_tables`
Co-authored-by: joshua-spacetime <josh@clockworklabs.io>
* Update TypeScript SDK reference (#181)
* Begin updating TypeScript SDK ref to match the new rust one
* Link to SQL ref from `subscribe` method
* Fill in the rest of the TypeScript SDK ref
* Fix copy-paste error: `subscribeToAllTables` should be camelCase
Co-authored-by: joshua-spacetime <josh@clockworklabs.io>
* Copy change from Rust SDK docs: no UB in `subscribeToAllTables`
Co-authored-by: joshua-spacetime <josh@clockworklabs.io>
* Fix casing of `withModuleName`
Co-authored-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com>
* Address Tyler's review
---------
Co-authored-by: joshua-spacetime <josh@clockworklabs.io>
Co-authored-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com>
---------
Co-authored-by: joshua-spacetime <josh@clockworklabs.io>
Co-authored-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com>
* 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>
* 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>