Commit Graph

3186 Commits

Author SHA1 Message Date
John Detter 0c28c87b1d Addressing Chippy's feedback (#8)
Co-authored-by: John Detter <no-reply@boppygames.gg>
2023-10-14 21:17:33 -05:00
John Detter 819947c3c4 Small updates to 0.7.0 (#61)
Co-authored-by: John Detter <no-reply@boppygames.gg>
2023-10-14 03:30:38 -05:00
John Detter c78d478b63 Unity Tutorial Updates (#7)
* Updated server side module

* More simplification

* More progress

* More updates

* Ready to start testing again

* Got through tutorial with some issues, going again

* Added warnings

* Small fix, this is ready to be released

---------

Co-authored-by: John Detter <no-reply@boppygames.gg>
2023-10-14 03:23:44 -05:00
joshua-spacetime a66faa4806 fix(428): Return only one message per table in subscription (#429)
Fixes #428.

Before this change, if you had multiple queries for the same base table
as part of a subscription, you would receive multiple DatabaseTableUpdate
messages referencing the same table.

Clients did not expect nor handle such cases.
2023-10-13 20:44:11 -07:00
John Detter 10f6d69473 This was an error in applying a patch (#6)
Co-authored-by: John Detter <no-reply@boppygames.gg>
2023-10-12 21:01:39 -05:00
Mazdak Farrokhzad c4af68fe96 🐮 Optimize decode_column and friends using Cow 🐮 (#424)
* chema_for_column: use a 🐄

* use Cow in schema_for_table + related improvements

* move function to method

* simplify clear_table
2023-10-13 01:15:58 +02:00
joshua-spacetime ca532c9609 test(414): multi-column index scan (#415)
Closes #414.

Adds a test for calling iter_by_col_eq with multiple columns.
Ensures the index is scanned if an applicable multi-column index is present.
To write this test, iter_by_col_eq was updated to take multiple columns.
2023-10-12 22:04:58 +00:00
John Detter 3d28d8827b Merge pull request #5 from clockworklabs/jdetter/another-sdk-docs-update
More SDK Updates for 0.7.0
2023-10-12 15:19:27 -05:00
John Detter a6a2419d17 Applied Phoebe's patch 2023-10-12 15:16:44 -05:00
George Kulakowski a836aed3aa Simplify and document WasmInstanceEnv's interface (#422)
Simplify and document WasmInstanceEnv's interface

This abstracts out all the internals of WasmInstanceEnv, and provides
a slightly higher level API. In particular, we expect to potentially
add more state associated to a single reducer invocation, and it will
be nice to interact with that in general rather than per type of
state.

This also documents WasmInstanceEnv and its members.
2023-10-12 20:10:49 +00:00
John Detter 4b1078b047 Fix Nuget command 2023-10-12 14:10:57 -05:00
John Detter fa3ca74502 Merge pull request #3 from clockworklabs/jdetter/sdk-docs-updates
First pass on documentation updates for 0.7.0
2023-10-12 14:10:15 -05:00
John Detter b2dbe89c91 Small 0.7.0 Fixes (#60)
* Small update

* Small fix

---------

Co-authored-by: John Detter <no-reply@boppygames.gg>
2023-10-12 12:23:50 -05:00
John Detter 102061f5fd Release v0.7.0-beta (#56)
* One-off query support (#49)

* SpacetimeDBURI argument in place of host and ssl enabled bool (#52)

* SpacetimeDBURI argument in place of host and ssl enabled bool

* Small cleanup

---------

Co-authored-by: John Detter <no-reply@boppygames.gg>

* Add support for client address; re-run `spacetime generate` for quickstart client (#54)

* README.md and License.txt updates (#53)

* Update README.md

* Add license.txt

* Rename

* Add LICENSE.txt with proper case

---------

Co-authored-by: Derek Brinkmann <dbrinkmann@clockworklabs.io>

* Add support for client address; re-run `spacetime generate` for quickstart client

Re: https://github.com/clockworklabs/SpacetimeDB/pull/299

---------

Co-authored-by: dbrinkmanncw <109690865+dbrinkmanncw@users.noreply.github.com>
Co-authored-by: Derek Brinkmann <dbrinkmann@clockworklabs.io>

* Making Quickstart Work Again (#57)

* Packaged nuget package, quickstart is now working again

* Reset DBNAME

---------

Co-authored-by: John Detter <no-reply@boppygames.gg>

* OnUnhandledReducerError (#31)

Co-authored-by: Steve <steve@codefics.com>
Co-authored-by: Boppy <no-reply@boppygames.gg>

---------

Co-authored-by: james gilles <jameshgilles@gmail.com>
Co-authored-by: dbrinkmanncw <109690865+dbrinkmanncw@users.noreply.github.com>
Co-authored-by: John Detter <no-reply@boppygames.gg>
Co-authored-by: Phoebe Goldman <phoebe@goldman-tribe.org>
Co-authored-by: Derek Brinkmann <dbrinkmann@clockworklabs.io>
Co-authored-by: SteveBoytsun <100594800+SteveBoytsun@users.noreply.github.com>
Co-authored-by: Steve <steve@codefics.com>
2023-10-12 11:54:57 -05:00
John Detter 8bcfd164b1 Another small python quickstart fix 2023-10-12 11:48:14 -05:00
John Detter d94a485381 Python quickstart updated 2023-10-12 11:16:06 -05:00
Piotr Sarnacki 6bd0e2d893 Fix Identity serialization/deserialization (#26)
After the format of keeping the identity on the server was changed we
have to update how we serialize and deserialize Identity values
2023-10-12 17:01:02 +02:00
Phoebe Goldman 13d9ed9250 Client address support for TypeScript SDK (#23)
See https://github.com/clockworklabs/SpacetimeDB/pull/299
2023-10-12 16:59:19 +02:00
John Detter 59fc108a4f C# Quickstart is working 2023-10-12 09:39:03 -05:00
Ingvar Stepanyan 4f8db7f632 Switch cursive to cross-platform backend (#412) 2023-10-12 10:06:59 -04:00
dbrinkmanncw b08a03eb55 README.md and License.txt updates (#53)
* Update README.md

* Add license.txt

* Rename

* Add LICENSE.txt with proper case

---------

Co-authored-by: Derek Brinkmann <dbrinkmann@clockworklabs.io>
2023-10-12 08:28:02 -05:00
John Detter 49ba9c3eec Merge pull request #2 from clockworklabs/jdetter/small-license-update
Small License Update
2023-10-12 08:24:31 -05:00
John Detter f467e18f7a Including this line for completeness 2023-10-12 08:23:54 -05:00
james gilles cd88c21237 Put out benchmark fires (#404)
* Reverts benchmarks portion of "Bench for SQL scan / where (#370)"
This partially reverts commit 05956d6.

* Get benchmarks runner to remember what it has installed, hopefully

* Fix build error
2023-10-12 14:14:46 +01:00
Tyler Cloutier 45032f7c3c Update index.md 2023-10-11 23:07:24 -07:00
Tyler Cloutier 540293a807 Update index.md 2023-10-11 22:22:57 -07:00
John Detter 858183d486 Merge pull request #1 from clockworklabs/jdetter/add-license-and-readme
License and Readme
2023-10-11 23:33:23 -05:00
John Detter fac941e4d1 LICENSE.txt and basic README.md 2023-10-11 21:58:10 -05:00
Ingvar Stepanyan 68079ff726 Bump C# version for release (#416) 2023-10-11 19:34:14 +00:00
Noa 4c6c9476d7 Switch to using imported module idents for marking version requirements (#335) 2023-10-11 14:14:36 -05:00
Ingvar Stepanyan 7edff4a213 Compile benchmarks in separate folder (#411) 2023-10-11 19:21:41 +01:00
Ingvar Stepanyan 8f5026f3ee Run Clippy first and share profile (#413) 2023-10-11 18:04:35 +01:00
Mazdak Farrokhzad 1168b61939 1. change fmt & map notation (#405)
2. refer less to BuiltinType
2023-10-11 15:46:56 +00:00
Phoebe Goldman 8b32a7c537 Add a section to the PR template requiring an estimate of complexity and risk (#407) 2023-10-10 18:06:26 -04:00
Ingvar Stepanyan ad366a740b Benchmark modules in release mode (#396) 2023-10-10 18:25:32 +01:00
joshua-spacetime c1fd28aa92 feat(397): Add min and max value helpers for builtin types (#398)
Fixes #397.

Adding these helpers for computing multidimensional index bounds.
Any unbounded or infinite dimensions need to be made finite by computing
the min or max value for the type of said dimension.

For example
```
a < 5 and b < 6
```
needs to become
```
a >= MIN and a < 5 and b >= MIN and b < 5
```
2023-10-10 16:13:19 +00:00
Phoebe Goldman 1ce99bd2ef SDK tests: Bump log up to info in the hopes of catching the "identity not yet received" thing (#314) 2023-10-10 10:16:09 -04:00
Mazdak Farrokhzad bdc2adda41 locking_tx_datastore: dedup some test code (#394) 2023-10-10 15:49:08 +02:00
Mazdak Farrokhzad b494bf4a3c more AlgebraicType conversions + use derive_more::From more (#395) 2023-10-10 13:31:04 +00:00
Mazdak Farrokhzad 91a296293c Refactor locking_tx_datastore tests (#393)
* refactor locking_tx_datastore tests

* add clarifying comments to locking_tx_datastore tests
2023-10-10 13:33:59 +02:00
Mazdak Farrokhzad 182ce8f9e6 Get benchmarks type checking again (#392)
* get benchmarks type checking again

* Fixed clippy warning

---------

Co-authored-by: Tyler Cloutier <cloutiertyler@aol.com>
2023-10-09 18:44:38 -07:00
Mazdak Farrokhzad ff69ec4a10 flatten BuiltinValue into AlgebraicValue (#389) 2023-10-09 18:58:52 +02:00
Mazdak Farrokhzad 099d0b8a90 move MapType boxing to AlgebraicType (#388) 2023-10-09 18:15:14 +02:00
Mazdak Farrokhzad 3d0d7da8fc simplify encoding_roundtrip test (#385) 2023-10-09 14:14:52 +00:00
Mazdak Farrokhzad 0a30c02827 Extract ArrayValue, ArrayType, MapValue, MapType to own files (#387)
* move ArrayType to own file

* move MapType to own file

* move ArrayValue to own file

* move MapValue to own file
2023-10-09 14:39:07 +02:00
Mazdak Farrokhzad 148ea2e48d reduce cloning of Header & co (#384) 2023-10-09 09:44:24 +02:00
Mazdak Farrokhzad 2019bd27b7 Add project path check (#380)
Co-authored-by: Boppy <no-reply@boppygames.gg>
2023-10-08 02:05:55 +02:00
Mazdak Farrokhzad a45c30c3d9 sats: misc refactoring (#382)
- more conversions
- prepare for getting rid of BuiltinValue & BuiltinType
- prepare for slim slices
2023-10-08 02:05:25 +02:00
Phoebe Goldman 77065a8f08 Add some comments to FutureQueue and the subscribe route (#378) 2023-10-06 15:18:29 -04:00
Piotr Sarnacki 09eb7e4735 Fix onUpdate when PK is of type Identity (#25)
When the primary key is of type Identity we were still doing ===
comparison by using the Map data structure. This commit introduces a
different data structure called OperationsMap which can also use isEqual
to compare keys if isEqual function is available
2023-10-06 20:42:24 +02:00