Commit e4098f9
## Description of Changes
This PR primarily affects the `bindings-macro` and `schema` crates to
review:
### Core changes
1. Replaces the `name` macro with `accessor` for **Tables, Views,
Procedures, and Reducers** in Rust modules.
2. Extends `RawModuleDefV10` with a new section for:
* case conversion policies
* explicit names
New sections are not validated in this PR so not functional.
3. Updates index behavior:
* Index names are now always **system-generated** for clients. Which
will be fixed in follow-up PR when we start validating RawModuleDef with
explicit names.
* The `accessor` name for an index is used only inside the module.
## Breaking changes (API/ABI)
1. **Rust modules**
* The `name` macro must be replaced with `accessor`.
2. **Client bindings (all languages)**
* Index names are now system-generated instead of using explicitly
provided names.
**Complexity:** 3
A follow-up PR will reintroduce explicit names with support for case
conversion.
---------
Co-authored-by: rekhoff <r.ekhoff@clockworklabs.io>
Co-authored-by: clockwork-labs-bot <clockwork-labs-bot@users.noreply.github.com>
Co-authored-by: clockwork-labs-bot <bot@clockworklabs.com>
1 parent 83851fe commit e4098f9
177 files changed
Lines changed: 1139 additions & 829 deletions
File tree
- crates
- bindings-csharp/Runtime/Internal/Autogen
- bindings-macro/src
- bindings-typescript
- src
- lib
- autogen
- sdk/client_api
- test-app/src/module_bindings
- test-react-router-app/server/src
- bindings
- src
- tests/ui
- codegen
- src
- tests/snapshots
- lib/src
- db/raw_def
- sats/src
- schema/src
- def/validate
- smoketests
- modules
- add-remove-index-indexed/src
- add-remove-index/src
- autoinc-basic/src
- autoinc-unique/src
- call-empty/src
- call-reducer-procedure/src
- client-connection-disconnect-panic/src
- client-connection-reject/src
- confirmed-reads/src
- delete-database/src
- describe/src
- dml/src
- fail-initial-publish-broken/src
- fail-initial-publish-fixed/src
- filtering/src
- hotswap-basic/src
- hotswap-updated/src
- module-nested-op/src
- modules-add-table/src
- modules-basic/src
- modules-breaking/src
- namespaces/src
- new-user-flow/src
- permissions-private/src
- pg-wire/src
- restart-connected-client/src
- restart-person/src
- rls-no-filter/src
- rls-with-filter/src
- rls/src
- schedule-cancel/src
- schedule-procedure/src
- schedule-subscribe/src
- schedule-volatile/src
- sql-format/src
- upload-module-2/src
- views-auto-migrate-updated/src
- views-auto-migrate/src
- views-basic/src
- views-broken-namespace/src
- views-broken-return-type/src
- views-drop-view/src
- views-query/src
- views-recovered/src
- views-sql/src
- views-subscribe/src
- views-trapped/src
- src
- tests
- demo/Blackholio
- client-unity/Assets
- PlayModeTests
- Scripts
- autogen/Tables
- client-unreal/Source/client_unreal
- Private/ModuleBindings/Tables
- Public/ModuleBindings/Tables
- server-rust/src
- docs
- docs
- 00100-intro
- 00100-getting-started
- 00300-tutorials
- 00200-core-concepts
- 00100-databases
- 00200-functions
- 00300-reducers
- 00300-tables
- llms
- static
- modules
- benchmarks/src
- keynote-benchmarks/src
- module-test/src
- perf-test/src
- sdk-test-connect-disconnect/src
- sdk-test-event-table/src
- sdk-test-procedure/src
- sdk-test-view/src
- sdk-test/src
- sdks/csharp/examples~/regression-tests
- client
- module_bindings/Tables
- republishing/client/module_bindings/Tables
- smoketests/tests
- templates
- basic-rs/spacetimedb/src
- basic-ts/src/module_bindings
- chat-console-rs/spacetimedb/src
- chat-react-ts/src/module_bindings
- nuxt-ts
- module_bindings
- types
- spacetimedb
- react-ts/src/module_bindings
- svelte-ts/src/module_bindings
- vue-ts/src/module_bindings
- tools/xtask-llm-benchmark/src/templates/rust/server/.cargo
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | | - | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
| 90 | + | |
| 91 | + | |
89 | 92 | | |
90 | 93 | | |
91 | 94 | | |
| |||
126 | 129 | | |
127 | 130 | | |
128 | 131 | | |
| 132 | + | |
| 133 | + | |
129 | 134 | | |
130 | 135 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
107 | 111 | | |
108 | 112 | | |
109 | 113 | | |
| |||
165 | 169 | | |
166 | 170 | | |
167 | 171 | | |
| 172 | + | |
| 173 | + | |
168 | 174 | | |
169 | 175 | | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
0 commit comments