Commit 4f2fad6
committed
Add TypeScript submodule support for SpacetimeDB modules
- TypeScript server SDK: runtime API for module mounting (submodules),
including namespaced dispatch, ctx.as helpers for cross-namespace calls,
and HTTP handler delegation
- TypeScript client codegen: namespace-aware table/reducer/procedure
exports and query builder for submodule tables and views
- Migrations: auto-migrate support for submodule tables, views, and
indexes; AddConstraint step added alongside NamespacedIdentifier-based
migration steps
- CLI: namespace support for `spacetime call` and `spacetime sql`
- C++/C# bindings: autogenerated RawSubmoduleV10 types
- module-test-ts: submodule integration test (lib_submodule)1 parent 2a07c57 commit 4f2fad6
63 files changed
Lines changed: 5141 additions & 1379 deletions
File tree
- crates
- bindings-cpp/include/spacetimedb/internal/autogen
- bindings-csharp/Runtime/Internal/Autogen
- bindings-typescript
- src
- lib
- autogen
- sdk
- server
- tests
- cli/src
- subcommands
- codegen
- examples
- src
- core/src
- client
- host
- v8
- syscall
- wasm_common
- wasmtime
- datastore/src/locking_tx_datastore
- engine/src
- lib/src/db/raw_def
- runtime/src
- schema
- src
- auto_migrate
- def/validate
- snapshots
- tests
- sql-parser/src/parser
- testing
- src
- tests
- docs/docs/00200-core-concepts/00100-databases
- modules/module-test-ts/src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 11 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | 15 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | 16 | | |
24 | 17 | | |
25 | | - | |
26 | | - | |
| 18 | + | |
27 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
28 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | | - | |
| 33 | + | |
33 | 34 | | |
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 36 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments