Ingvar Stepanyan
fb541106ac
Use shorthand ToBytes in more places
2024-09-18 10:28:58 +01:00
Ingvar Stepanyan
db4734dc2f
Fix ScheduleAt
2024-09-18 01:46:04 +01:00
Ingvar Stepanyan
3b73b1c8d7
[C#] NFC: split out IStructuralWrite interface
...
Structural read implementation can be only directly implemented on types with default constructors, but writing should not have such limitations.
In this PR I'm splitting out writing into its own interface, so that it can be implemented even on types like tagged enums, which simplifies their own `BSATN.Write` implementation and allows to use them with helpers like `ToBytes`.
I'm also making the generated tagged enum record `abstract` - which it, arguably, should've been from the beginning - but it should be a non-functional change because its constructor has always been `private` anyway.
2024-09-18 01:01:46 +01:00
Noa
f6bc6dcfe5
Switch Rust codegen to use new ModuleDef ( #1675 )
2024-09-17 18:32:35 +00:00
joshua-spacetime
f047bb14f7
feat: sql type checking and logical plan ( #1708 )
2024-09-17 15:41:19 +00:00
Kim Altintop
35de1ef920
snapshot: pub access to snapshot file + object repo ( #1709 )
...
Signed-off-by: Kim Altintop <kim@eagain.io >
Co-authored-by: Phoebe Goldman <phoebe@clockworklabs.io >
2024-09-16 19:34:09 +00:00
Ingvar Stepanyan
214eb7e047
NFC: enforce more C# code style + enable it in Visual Studio ( #1687 )
2024-09-16 19:29:33 +00:00
james gilles
4d3a992e47
Fix heisenbug by using petgraph ( #1712 )
2024-09-16 19:04:46 +00:00
Mazdak Farrokhzad
4f297880ca
WASM ABI: add datastore_btree_scan_bsatn & index_id_from_name ( #1699 )
...
Signed-off-by: Mazdak Farrokhzad <twingoow@gmail.com >
Co-authored-by: Phoebe Goldman <phoebe@clockworklabs.io >
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com >
2024-09-16 19:03:17 +00:00
james gilles
77b2da6270
Automatic migration planning ( #1658 )
2024-09-12 16:17:23 -04:00
james gilles
f3e3d924f7
Add schema::type_for_generate, update validation to use it ( #1661 )
...
Signed-off-by: james gilles <jameshgilles@gmail.com >
Co-authored-by: Ingvar Stepanyan <me@rreverser.com >
2024-09-11 15:38:56 -04:00
james gilles
11283c33a4
Add spacetimedb_primitives::col_list::ColSet ( #1691 )
...
Signed-off-by: james gilles <jameshgilles@gmail.com >
Co-authored-by: Mazdak Farrokhzad <twingoow@gmail.com >
2024-09-11 15:38:14 -04:00
Tyler Cloutier
3530498b88
Switched table names to singular ( #1684 )
...
Co-authored-by: Phoebe Goldman <phoebe@goldman-tribe.org >
2024-09-11 11:11:51 -04:00
Noa
bdf94f1fb3
Fix table codegen wrt table names ( #1689 )
2024-09-11 09:39:15 -04:00
Ingvar Stepanyan
c8279e1714
C#: hide ReadGenFields from the public API ( #1690 )
2024-09-10 17:06:39 +00:00
Kim Altintop
0029ca5648
commitlog: Make commit module public, and allow access to header fields ( #1685 )
2024-09-10 08:16:32 +00:00
Noa
8daab8e20f
Impl macro rework ( #1314 )
2024-09-09 23:30:31 +00:00
Ingvar Stepanyan
607f7ce6b8
Auto-generate C# ModuleDef bindings from Rust ( #1680 )
2024-09-09 18:22:17 +00:00
Ingvar Stepanyan
2cccac4e14
C# module benchmarks ( #1679 )
2024-09-06 18:08:14 +00:00
Mazdak Farrokhzad
df5ef6c81d
WASM ABI: implement console ABIs ( #1664 )
2024-09-05 20:19:21 +00:00
Mazdak Farrokhzad
da71d0f9b1
WASM ABI: insert -> datastore_insert_bsatn & impl new semantics ( #1639 )
2024-09-05 19:32:26 +00:00
Ingvar Stepanyan
68e356519e
C#: split table codegen logic from type codegen logic ( #1573 )
...
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com >
2024-09-05 18:00:40 +00:00
Mazdak Farrokhzad
69e881c38f
bindings-csharp: pass address_1 ( #1621 )
...
Signed-off-by: Mazdak Farrokhzad <twingoow@gmail.com >
Co-authored-by: Ingvar Stepanyan <me@rreverser.com >
2024-09-04 17:36:43 +00:00
Mazdak Farrokhzad
b62569462d
WASM ABI: delete_by_rel -> datastore_delete_all_by_eq_bsatn ( #1638 )
2024-09-02 17:43:40 +00:00
Mazdak Farrokhzad
49f366ff6b
WASM ABI: iter_start -> datastore_table_scan_bsatn ( #1637 )
2024-09-02 15:24:16 +00:00
Mario Montoya
8ee1de60b4
Update SQL AST in accordance with the SQL spec ( #1623 )
...
Co-authored-by: joshua-spacetime <josh@clockworklabs.io >
2024-08-29 23:44:27 +00:00
james gilles
2be42156b2
Allow converting new ModuleDef to old TableSchema ( #1630 )
2024-08-29 18:17:29 +00:00
james gilles
98faf7d4e1
Add backwards-compatible validation for RawModuleDefV8. ( #1606 )
2024-08-29 10:10:53 +00:00
Kim Altintop
bba3572752
[WASM ABI 1.0] Fix bytes_source_read ( #1646 )
2024-08-28 17:37:29 +00:00
Mazdak Farrokhzad
c26c65873b
WASM ABI: add datastore_table_row_count ( #1636 )
2024-08-27 23:02:18 +00:00
Mazdak Farrokhzad
2b69583f76
WASM ABI: get_table_id -> table_id_from_name ( #1634 )
2024-08-27 22:33:47 +00:00
Mazdak Farrokhzad
1dd1e633f3
WASM ABI: implement row_iter_bsatn_advance & row_iter_bsatn_close ( #1622 )
2024-08-27 22:01:06 +00:00
Ingvar Stepanyan
c88a6ce366
Fix ptr mutability of some new C# FFIs ( #1645 )
2024-08-27 21:53:39 +00:00
james gilles
6e6bee2a9c
ABI v9 validation code ( #1572 )
...
Signed-off-by: james gilles <jameshgilles@gmail.com >
2024-08-27 20:02:26 +00:00
Mazdak Farrokhzad
4c086fef96
[WASM ABI 1.0] impl __call_reducer__ & __describe_module__ using bytes_sink_write ( #1615 )
2024-08-27 15:48:40 +00:00
Ingvar Stepanyan
b4c7c89239
NFC: use record for BigInt equality and hash ( #1633 )
2024-08-26 10:10:49 +00:00
Noa
c577d509c6
Add volatile_nonatomic_schedule_immediate ( #1612 )
2024-08-23 18:38:07 +00:00
John Detter
4e530a55c2
Updated docker internal port to 3000 ( #1626 )
...
Co-authored-by: John Detter <no-reply@boppygames.gg >
2024-08-23 18:16:18 +00:00
Shubham Mishra
9380eb6745
Dedup schedueler queue ( #1587 )
2024-08-22 17:51:31 +00:00
james gilles
747eb71830
Make ScheduleAt special + Typespace::is_valid_for_client_code_generation ( #1590 )
2024-08-22 17:05:04 +00:00
Ingvar Stepanyan
9f1b6dc254
NFC: enforce style for C# locally and on CI ( #1567 )
2024-08-21 16:21:45 +00:00
joshua-spacetime
8282b674b5
fix: Always remember to release a read only tx ( #1613 )
2024-08-20 21:31:05 +00:00
james gilles
9e178bd772
Placate some clippy errors in snapshot ( #1611 )
2024-08-20 16:44:19 +00:00
Mazdak Farrokhzad
9ea5a2f243
[WASM ABI 1.0] impl __call_reducer__ using bytes_source_read ( #1609 )
2024-08-20 09:33:29 +00:00
Mazdak Farrokhzad
3be5c83d99
[WASM ABI 1.0] __call_reducer__ receives Identity & Address by value ( #1607 )
...
Signed-off-by: Mazdak Farrokhzad <twingoow@gmail.com >
Co-authored-by: Ingvar Stepanyan <me@rreverser.com >
Co-authored-by: Noa <coolreader18@gmail.com >
2024-08-19 22:20:57 +00:00
Mazdak Farrokhzad
1ca9b1a933
[WASM ABI 1.0] Change ColId from u32 to u16 ( #1597 )
2024-08-19 17:56:28 +00:00
Ingvar Stepanyan
16ecf991f0
Verify Unity compatibility in the shared C# codegen ( #1576 )
2024-08-15 20:44:43 +00:00
Mazdak Farrokhzad
6a08674ccb
Allow empty ColList ( #1588 )
2024-08-15 16:08:51 +00:00
james gilles
b1f80e0ffe
Preliminary Identifier validation ( #1584 )
2024-08-14 18:00:26 +00:00
james gilles
7057d9fb1f
Add helpers and change CollectAllErrors to be more composable ( #1586 )
2024-08-13 20:26:08 +00:00