Commit Graph

3186 Commits

Author SHA1 Message Date
Kim Altintop e32b00420b set names atomic (#2325)
Co-authored-by: Tyler Cloutier <cloutiertyler@aol.com>
Co-authored-by: Noa <coolreader18@gmail.com>
2025-02-28 21:59:23 +00:00
Noa 43b4085e22 Print a message with a shell line to add bindir to PATH (#2327) 2025-02-28 20:33:23 +00:00
Zeke Foppa 20f4bfbd21 Bump Rust and C# package versions to 1.0.0 (#2283)
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
Co-authored-by: John Detter <no-reply@boppygames.gg>
2025-02-28 20:13:07 +00:00
Noa f38e72e57f Update docs for http api (#188)
* Update docs for http api

* Apply suggestions from code review

Co-authored-by: Phoebe Goldman <phoebe@goldman-tribe.org>

* Remove energy page

---------

Co-authored-by: Phoebe Goldman <phoebe@goldman-tribe.org>
2025-02-28 13:32:33 -06:00
Noa 7c878795d3 Add docs for standalone config.toml (#190)
* Add docs for standalone config.toml

* Update docs/cli-reference/standalone-config.md

Co-authored-by: Phoebe Goldman <phoebe@goldman-tribe.org>

* pre formatting

---------

Co-authored-by: Phoebe Goldman <phoebe@goldman-tribe.org>
2025-02-28 13:32:12 -06:00
Phoebe Goldman 05f6de944d Update Rust client SDK quickstart for 1.0 API (#162)
* 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>
2025-02-28 14:25:55 -05:00
joshua-spacetime df1dcf2b04 Fix comment for SubscribeToAllTables (#259)
## 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.
2025-02-28 10:39:09 -08:00
joshua-spacetime 8f07c64944 test: set semantics in datastore (#2324) 2025-02-28 16:53:00 +00:00
Mario Montoya 04fd294627 Add missing LICENSE (#2319) 2025-02-28 14:32:59 +00:00
Mario Montoya 9466b72028 Add link to documentation of SEQUENCES (#2321) 2025-02-28 14:11:04 +00:00
joshua-spacetime 724e378e07 Update comment to reflect the new internals of the subscription api (#2313) 2025-02-28 12:45:07 +00:00
Phoebe Goldman 7cb20857b2 Update insert docs to reflect actual behavior on set-semantic duplicates (#2322) 2025-02-28 02:30:24 +00:00
Noa 723d2c61c4 Install dotnet-sdk-8 instead of 9 in Dockerfile (#2323) 2025-02-27 22:16:13 +00:00
Mario Montoya 5943e6fc4f Document behaviour of SEQUENCES (#174)
* Document behaviour of SEQUENCES

* Update docs/appendix.md

Co-authored-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Phoebe Goldman <phoebe@goldman-tribe.org>

---------

Co-authored-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com>
Co-authored-by: Phoebe Goldman <phoebe@goldman-tribe.org>
2025-02-27 16:59:49 -05:00
Noa 956b4f8e5b Add dockerfile for cli (#2312) 2025-02-27 20:24:43 +00:00
Tyler Cloutier e5cdda78ce Removed the EULA check in the CLI (#2315) 2025-02-27 18:44:35 +00:00
Mazdak Farrokhzad 9e8463a59f Document reducer semantics wrt. transactionality (#185)
document reducer semantics wrt. transactionality
2025-02-27 16:32:04 +01:00
joshua-spacetime b1a9f96baf Fix comment for SubscribeToAllTables (#256)
## 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.
2025-02-26 13:00:46 -08:00
james gilles 8d04c3ef7b Move Rust Module SDK reference to docs.rs (#114)
Move rust reference to rustdoc
2025-02-26 14:49:31 -05:00
rekhoff d41bc73587 Update to C# Quickstart-Chat Server Module and Client SDK tutorial documents (#170)
* 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>
2025-02-26 11:32:17 -08:00
joshua-spacetime 7ed444cf98 Remove 0.12 migration guide 2025-02-26 09:23:33 -08:00
Phoebe Goldman 0da26ceaac Update Rust client quickstart example to match tutorial document (#2310) 2025-02-26 17:07:30 +00:00
Jeffrey Dallatezza 909040f716 hacky auth check for database creation. (#2308) 2025-02-26 16:52:30 +00:00
Jeffrey Dallatezza 83da8dd9e6 Handle duplicate rows and delay callbacks (#146)
* 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>
2025-02-26 08:50:25 -08:00
Noa b8ebe42484 Fix self-replace on windows (#2294) 2025-02-26 16:42:59 +00:00
Kim Altintop 55cd1e4587 sdk: Client ping on idle connections (#2309)
Co-authored-by: Phoebe Goldman <phoebe@goldman-tribe.org>
2025-02-26 16:22:42 +00:00
Tyler Cloutier d147dff5b1 Added in a SQL execution time calculation (#2297) 2025-02-25 21:44:21 +00:00
james gilles 083531e319 SubscribeMulti + UnsubscribeMulti, multiplicities (#249)
## 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
2025-02-25 16:24:26 -05:00
joshua-spacetime 53d99af23d Remove references to testnet
Closes #183.
2025-02-25 12:18:15 -08:00
joshua-spacetime df263b1431 Remove reference to set energy-balance in http api
Closes #119.
2025-02-25 12:18:15 -08:00
joshua-spacetime 7b0ad990f6 Remove references to SpacetimeDB 0.6
Closes #118.
2025-02-25 12:18:15 -08:00
joshua-spacetime 172c060b4e Add comment on Time Stamp Counter (TSC) for profiling with tracy (#2304) 2025-02-25 19:15:45 +00:00
james gilles 4fc4963f21 Final C# codegen changes (#2303) 2025-02-25 18:57:45 +00:00
joshua-spacetime 9a86ea12dc API for mutable subscriptions (#166)
Closes #78.

Includes rust and csharp examples.
2025-02-25 09:57:09 -08:00
joshua-spacetime 9efb7f0558 Add best practices for Spacetime SQL (#180)
Closes #179.
2025-02-25 08:59:34 -08:00
Jeffrey Dallatezza a73a689778 Clear DB size gauges when shutting a module down (#2259) 2025-02-25 16:32:30 +00:00
joshua-spacetime 43a1632bd7 Document LIMIT and COUNT (#178)
Closes #177.
2025-02-24 14:08:26 -08:00
Mazdak Farrokhzad 92c8e95a19 MutTxId::update: consider deleted commited row when replacing tx row (#2302)
Signed-off-by: Mazdak Farrokhzad <twingoow@gmail.com>
Co-authored-by: Phoebe Goldman <phoebe@clockworklabs.io>
2025-02-24 17:08:00 +00:00
Kim Altintop d92a3f5f1a sdk: Basic connection metrics (#2299) 2025-02-24 16:57:31 +00:00
Mazdak Farrokhzad 668eef0d10 bindings-csharp: use the update ABI (#2269)
Co-authored-by: rekhoff <r.ekhoff@clockworklabs.io>
2025-02-22 17:45:28 +00:00
joshua-spacetime 97de45003a fix: join order rewrite rule (#2295) 2025-02-21 23:29:38 +00:00
Mazdak Farrokhzad b34caf8306 Rust SDK: Deduplicate rows accross queries (#2286)
Signed-off-by: Mazdak Farrokhzad <twingoow@gmail.com>
Co-authored-by: Phoebe Goldman <phoebe@clockworklabs.io>
2025-02-21 21:12:29 +00:00
Noa 30ba0f9d97 Use fixed term width for cli help test (#2293) 2025-02-21 20:18:26 +00:00
Phoebe Goldman d3105837d5 Rust client SDK: send SubscribeMulti and UnsubscribeMulti (#2281)
Co-authored-by: Jeffrey Dallatezza <jeffreydallatezza@gmail.com>
2025-02-21 20:15:56 +00:00
Jeffrey Dallatezza fc71275a46 Fix some typos in the ts code gen. (#2287) 2025-02-21 19:10:58 +00:00
Jeffrey Dallatezza 0f03e34f43 Add multi-query version of subscribe messages, and dedup queries on the backend. (#2278) 2025-02-21 18:36:00 +00:00
Mario Montoya ec14d20f2c Fix auto_inc attribute name (#175) 2025-02-21 13:06:57 -05:00
John Detter d9c666c22f Fix docker container for standalone (#2289)
Co-authored-by: John Detter <no-reply@boppygames.gg>
2025-02-21 16:38:18 +00:00
Noa 27a2afa2b8 Update install script (#2265)
Co-authored-by: John Detter <no-reply@boppygames.gg>
2025-02-21 06:10:31 +00:00
Noa 3bccc079cd Rename satn.md -> sats-json.md (#158) 2025-02-20 23:45:22 -06:00