Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
162 commits
Select commit Hold shift + click to select a range
40f239e
table -> accessor: rust
Shubham8287 Feb 11, 2026
3b3b287
exlude test-app
Shubham8287 Feb 11, 2026
055d111
ts: name -> accessor
Shubham8287 Feb 11, 2026
3deab9d
Revert "ts: name -> accessor"
Shubham8287 Feb 11, 2026
f14234d
indexarg to accessor
Shubham8287 Feb 11, 2026
99897ab
llm docs update
Shubham8287 Feb 11, 2026
1cede00
added index name arg
Shubham8287 Feb 11, 2026
5b46a44
fix test
Shubham8287 Feb 11, 2026
9aa1cfb
Merge branch 'master' into shub/table-name-to-accessor
Shubham8287 Feb 11, 2026
076a026
define name -> accessor in views, reducer and table
Shubham8287 Feb 11, 2026
f47c1ff
ui tests
Shubham8287 Feb 11, 2026
4462684
views accessor
Shubham8287 Feb 11, 2026
c2f9ae7
Merge branch 'master' into shub/table-name-to-accessor
Shubham8287 Feb 11, 2026
ee62ea2
insta
Shubham8287 Feb 11, 2026
3f93250
Merge branch 'master' into shub/table-name-to-accessor
Shubham8287 Feb 12, 2026
80e950e
explicit names macro
Shubham8287 Feb 12, 2026
616f22b
index fix
Shubham8287 Feb 12, 2026
b78f3ca
Merge branch 'master' into shub/table-name-to-accessor
Shubham8287 Feb 12, 2026
468698d
fix cargo.toml
Shubham8287 Feb 12, 2026
973a7dd
commentary for index
Shubham8287 Feb 12, 2026
ed568f9
insta tests
Shubham8287 Feb 12, 2026
c899270
fix index arg
Shubham8287 Feb 12, 2026
c533f0f
fix smoketest
Shubham8287 Feb 12, 2026
d1f208a
fix typos
Shubham8287 Feb 12, 2026
3651538
Merge branch 'master' into shub/table-name-to-accessor
Shubham8287 Feb 12, 2026
ae8c325
stupid insta test
Shubham8287 Feb 12, 2026
c6a194d
generate ts module def
Shubham8287 Feb 12, 2026
f287d0f
fix test
Shubham8287 Feb 12, 2026
9a7a9cc
remove from RawIndexDefV10
Shubham8287 Feb 12, 2026
db82a7c
use sourceName as accessorName in ts for now
Shubham8287 Feb 12, 2026
639ea21
fmt
Shubham8287 Feb 12, 2026
0644ebf
insta tests
Shubham8287 Feb 12, 2026
2f9abc9
Merge branch 'master' into shub/table-name-to-accessor
Shubham8287 Feb 13, 2026
4ddf6ac
not modify RawINdeXDefV10
Shubham8287 Feb 13, 2026
2cdc079
Merge branch 'master' into shub/table-name-to-accessor
Shubham8287 Feb 13, 2026
901ee64
veiw name to accessor
Shubham8287 Feb 13, 2026
cd95adc
template bindings
Shubham8287 Feb 13, 2026
a2cd7a2
fix index accessor
Shubham8287 Feb 13, 2026
24fbf54
doc update
Shubham8287 Feb 13, 2026
dbefb0d
csharp autogen
Shubham8287 Feb 13, 2026
3eaca93
autogen chsharp
Shubham8287 Feb 13, 2026
4329313
Updated C# regression tests with new index names
rekhoff Feb 13, 2026
7c51205
Updated Blackholio Unity demo with new index names
rekhoff Feb 13, 2026
55dfedf
Updated C# republishing regression test bindings
rekhoff Feb 13, 2026
29da61e
Merge remote-tracking branch 'origin/master' into shub/table-name-to-…
clockwork-labs-bot Feb 13, 2026
a7ff6f8
Merge origin/master into shub/table-name-to-accessor
Feb 14, 2026
a7dc1e9
case conversion
Shubham8287 Feb 11, 2026
a8308ad
temporary acessor fix
Shubham8287 Feb 15, 2026
158f057
ts index fix and canonical naming
Shubham8287 Feb 15, 2026
c461c11
fix rust table macro
Shubham8287 Feb 15, 2026
15ede7f
explicit names
Shubham8287 Feb 16, 2026
19f1b3e
Merge origin/master into shub/table-name-to-accessor
Feb 16, 2026
e0fb227
lints
Shubham8287 Feb 16, 2026
32e57d9
fix ts bindings
Shubham8287 Feb 16, 2026
136ea81
remove index name in rust
Shubham8287 Feb 16, 2026
0d71487
merge conflict
Shubham8287 Feb 16, 2026
a406b51
Merge branch 'shub/table-name-to-accessor' into shub/case-conversion
Shubham8287 Feb 16, 2026
698f299
remove index canonical name
Shubham8287 Feb 16, 2026
34f4a2b
lint
Shubham8287 Feb 16, 2026
02c685f
more lint
Shubham8287 Feb 16, 2026
f4fd431
Merge branch 'shub/table-name-to-accessor' into shub/case-conversion
Shubham8287 Feb 16, 2026
1d3bc51
Csharp fix and table test
Shubham8287 Feb 16, 2026
a06b720
add alias field in schema && accesor in Defs
Shubham8287 Feb 16, 2026
0ed03a5
lints
Shubham8287 Feb 16, 2026
c6acc13
Resolve both accessor and canonical names in sql
joshua-spacetime Feb 16, 2026
508be98
lints
Shubham8287 Feb 16, 2026
108f0e6
test
Shubham8287 Feb 16, 2026
da75bf5
Merge branch 'master' into shub/case-conversion
Shubham8287 Feb 16, 2026
5eaae22
lint
Shubham8287 Feb 16, 2026
2ab8559
fix typo in module
Shubham8287 Feb 16, 2026
db80249
uncomment tests
Shubham8287 Feb 16, 2026
350738b
smoketest
Shubham8287 Feb 16, 2026
d4af61e
smoketest
Shubham8287 Feb 16, 2026
f2b22a1
Allow passing canonicalname to indexopts
coolreader18 Feb 16, 2026
ec9bbc7
fmt
Shubham8287 Feb 16, 2026
11a1b27
Add system tables to table, column, and index accessor name mappings
joshua-spacetime Feb 16, 2026
5241e07
Merge branch 'shub/alias' into shub/case-conversion
Shubham8287 Feb 16, 2026
e2a0617
index canonical name
Shubham8287 Feb 16, 2026
34b417b
Resolve SQL table names using st_table_accessor
joshua-spacetime Feb 16, 2026
75b8a46
Resolve SQL column names using st_column_accessor
joshua-spacetime Feb 17, 2026
096593e
Insert into accessor system tables
joshua-spacetime Feb 17, 2026
ec752e8
Resolve query builder and view accessor names
joshua-spacetime Feb 17, 2026
c896068
Merge remote-tracking branch 'origin/shub/alias' into shub/case-conve…
Shubham8287 Feb 17, 2026
2956d56
codegen fixes
Shubham8287 Feb 17, 2026
e66dc2c
autoinc
Shubham8287 Feb 17, 2026
04eece7
fix pg wire
Shubham8287 Feb 17, 2026
1a38829
Merge remote-tracking branch 'origin/master' into shub/alias
Shubham8287 Feb 17, 2026
17fe27d
disable smoketests
Shubham8287 Feb 17, 2026
fb2c9a3
index_name_or_alias
Shubham8287 Feb 17, 2026
277bd0d
uncomment assets
Shubham8287 Feb 17, 2026
d6eadc8
lint
Shubham8287 Feb 17, 2026
e82499a
Merge branch 'shub/alias' into shub/case-conversion
Shubham8287 Feb 17, 2026
a135aca
tests
Shubham8287 Feb 17, 2026
7a67134
Merge branch 'master' into shub/case-conversion
Shubham8287 Feb 17, 2026
8ed9f59
test
Shubham8287 Feb 17, 2026
f770195
benchmark module updates
Shubham8287 Feb 17, 2026
9ccfd4d
update ts test
Shubham8287 Feb 17, 2026
24588a6
update sdk test
Shubham8287 Feb 17, 2026
53d77d4
update module-test-ts
Shubham8287 Feb 17, 2026
b675846
schema tests
Shubham8287 Feb 17, 2026
bfbd592
fix integration test
Shubham8287 Feb 17, 2026
7c3b5fe
fix sql test
Shubham8287 Feb 17, 2026
ea4a984
smoketests
Shubham8287 Feb 17, 2026
497d0bc
Use `accessor_name` for generated identifiers in TS/Rust/C#/Unreal co…
cloutiertyler Feb 18, 2026
0b7434f
accessor name in raw index
Shubham8287 Feb 18, 2026
28f0771
fix tests
Shubham8287 Feb 18, 2026
69002ad
Merge branch 'master' into shub/case-conversion
Shubham8287 Feb 18, 2026
80faf30
expose accessor_name
Shubham8287 Feb 18, 2026
056495d
Merge branch 'tyler/use-accessor-name-in-codegen' into shub/case-conv…
Shubham8287 Feb 18, 2026
6625b43
snap
Shubham8287 Feb 18, 2026
3e89965
Fix ModuleDef → RawModuleDefV10 conversion to preserve names
clockwork-labs-bot Feb 18, 2026
c72f6d4
fix test
Shubham8287 Feb 18, 2026
9ff9575
reset module test
Shubham8287 Feb 18, 2026
a0d277a
insta
Shubham8287 Feb 18, 2026
ad42f97
lint
Shubham8287 Feb 18, 2026
489119f
build type generate with accessor
Shubham8287 Feb 18, 2026
762baaa
tests
Shubham8287 Feb 18, 2026
d77e6a1
delete extra file
Shubham8287 Feb 18, 2026
6a6b5a6
fix csharp doc
Shubham8287 Feb 18, 2026
142043b
Fix error
coolreader18 Feb 18, 2026
a018a49
regen csharp bindings
Shubham8287 Feb 18, 2026
780677c
Blackholio
Shubham8287 Feb 19, 2026
5766511
sdks bindings
Shubham8287 Feb 19, 2026
ed2408b
Merge branch 'master' into shub/case-conversion
Shubham8287 Feb 19, 2026
e528393
ts-regen
Shubham8287 Feb 19, 2026
39e960d
fix rust query builder
Shubham8287 Feb 19, 2026
0d426de
Merge branch 'master' into shub/case-conversion
Shubham8287 Feb 19, 2026
ebf50ed
Apply suggestion from @Shubham8287
Shubham8287 Feb 19, 2026
e96952a
fmt
Shubham8287 Feb 19, 2026
89d60dc
pnpm format
Shubham8287 Feb 19, 2026
297d833
merge fixes
Shubham8287 Feb 19, 2026
6c16fef
csharp update
Shubham8287 Feb 19, 2026
2e1d299
regen bindings
Shubham8287 Feb 19, 2026
0b0c6d8
uncomment tests
Shubham8287 Feb 19, 2026
f675259
undo test connect disocnnect
Shubham8287 Feb 19, 2026
4cce697
fix smoketest to green
Shubham8287 Feb 19, 2026
faa1437
increase counter
Shubham8287 Feb 19, 2026
1896274
Re-enable bench tests for case conversion PR (#4352)
clockwork-labs-bot Feb 19, 2026
0a5de36
Blackholio Unity bindings update
rekhoff Feb 19, 2026
13b66c9
C# Regression Test client bindings update
rekhoff Feb 19, 2026
0549340
Fix hardcoded SQL table names in test-client for case conversion
clockwork-labs-bot Feb 19, 2026
4ab4f75
Merge branch 'shub/case-conversion' of https://github.com/clockworkla…
clockwork-labs-bot Feb 19, 2026
6c1a445
Derive SQL table names from generated bindings instead of hardcoding
clockwork-labs-bot Feb 19, 2026
0a84c01
delete duplicate smoketest
Shubham8287 Feb 19, 2026
831d98f
Revert "Derive SQL table names from generated bindings instead of har…
Shubham8287 Feb 19, 2026
9dc5d6c
enable tests
Shubham8287 Feb 19, 2026
0be9546
fix index test
Shubham8287 Feb 19, 2026
4cf14e9
Don't do toCamelCase
coolreader18 Feb 19, 2026
2e6c33e
fix ts lint
joshua-spacetime Feb 19, 2026
671886d
Commented out C++ sdk tests until C++ upgrade to V10
JasonAtClockwork Feb 19, 2026
880bdad
Merge branch 'master' into shub/case-conversion
joshua-spacetime Feb 19, 2026
25d709c
Merge branch 'master' into shub/case-conversion
gefjon Feb 20, 2026
777c330
Fix TS SDK test: use camelCase table accessors directly
clockwork-labs-bot Feb 20, 2026
c3bec13
Use accessor names from definitions instead of recomputing
clockwork-labs-bot Feb 20, 2026
2c0398b
u8 -> u_8
Shubham8287 Feb 20, 2026
3b54660
u8 -> u_8 in csharp module:
Shubham8287 Feb 20, 2026
e616b05
Regenerate procedure-client and view-client bindings
clockwork-labs-bot Feb 20, 2026
a35b08d
procedure bindings
Shubham8287 Feb 20, 2026
0d7a404
Merge branch 'master' into shub/case-conversion
Shubham8287 Feb 20, 2026
884cd37
delete new files added by mistake:
Shubham8287 Feb 20, 2026
fdd4063
Update C# codegen snapshots for case conversion changes
clockwork-labs-bot Feb 20, 2026
0f71aeb
remove unsupported case
Shubham8287 Feb 20, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crates/bench/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ spacetimedb-testing = { path = "../testing" }

ahash.workspace = true
anyhow.workspace = true
convert_case.workspace = true
anymap.workspace = true
byte-unit.workspace = true
clap.workspace = true
Expand Down
10 changes: 8 additions & 2 deletions crates/bench/src/spacetime_module.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use std::{marker::PhantomData, path::Path};

use convert_case::{Case, Casing};
use spacetimedb::db::{Config, Storage};
use spacetimedb_lib::{
sats::{product, ArrayValue},
Expand Down Expand Up @@ -89,9 +90,14 @@ impl<L: ModuleLanguage> BenchDatabase for SpacetimeModule<L> {
table_style: crate::schemas::IndexStrategy,
) -> ResultBench<Self::TableId> {
// Noop. All tables are built into the "benchmarks" module.
// The module's default CaseConversionPolicy is SnakeCase, which
// inserts underscores at letter-digit boundaries (e.g. u32 -> u_32).
// We must match that here so reducer/table lookups succeed.
let raw = table_name::<T>(table_style);
let converted = raw.as_ref().to_case(Case::Snake);
Ok(TableId {
pascal_case: table_name::<T>(table_style),
snake_case: table_name::<T>(table_style),
pascal_case: TableName::for_test(&converted),
snake_case: TableName::for_test(&converted),
})
}

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -269,12 +269,12 @@ SpacetimeDB.BSATN.ITypeRegistrar registrar
[
new(
SourceName: "DemoTable_Id_idx_btree",
AccessorName: null,
AccessorName: "Id",
Algorithm: new SpacetimeDB.Internal.RawIndexAlgorithm.BTree([0])
),
new(
SourceName: "DemoTable_Id_idx_btree",
AccessorName: null,
AccessorName: "ById",
Algorithm: new SpacetimeDB.Internal.RawIndexAlgorithm.BTree([0])
)
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//HintName: FFI.cs
//HintName: FFI.cs
// <auto-generated />
#nullable enable
// The runtime already defines SpacetimeDB.Internal.LocalReadOnly in Runtime\Internal\Module.cs as an empty partial type.
Expand Down Expand Up @@ -726,7 +726,7 @@ SpacetimeDB.BSATN.ITypeRegistrar registrar
[
new(
SourceName: "BTreeMultiColumn_X_Y_Z_idx_btree",
AccessorName: null,
AccessorName: "Location",
Algorithm: new SpacetimeDB.Internal.RawIndexAlgorithm.BTree([0, 1, 2])
)
],
Expand Down Expand Up @@ -902,17 +902,17 @@ SpacetimeDB.BSATN.ITypeRegistrar registrar
[
new(
SourceName: "BTreeViews_Id_idx_btree",
AccessorName: null,
AccessorName: "Id",
Algorithm: new SpacetimeDB.Internal.RawIndexAlgorithm.BTree([0])
),
new(
SourceName: "BTreeViews_X_Y_idx_btree",
AccessorName: null,
AccessorName: "Location",
Algorithm: new SpacetimeDB.Internal.RawIndexAlgorithm.BTree([1, 2])
),
new(
SourceName: "BTreeViews_Faction_idx_btree",
AccessorName: null,
AccessorName: "Faction",
Algorithm: new SpacetimeDB.Internal.RawIndexAlgorithm.BTree([3])
)
],
Expand Down Expand Up @@ -1089,12 +1089,12 @@ SpacetimeDB.BSATN.ITypeRegistrar registrar
[
new(
SourceName: "MultiTable1_Foo_idx_btree",
AccessorName: null,
AccessorName: "Foo",
Algorithm: new SpacetimeDB.Internal.RawIndexAlgorithm.BTree([1])
),
new(
SourceName: "MultiTable1_Name_idx_btree",
AccessorName: null,
AccessorName: "Name",
Algorithm: new SpacetimeDB.Internal.RawIndexAlgorithm.BTree([0])
)
],
Expand Down Expand Up @@ -1216,7 +1216,7 @@ SpacetimeDB.BSATN.ITypeRegistrar registrar
[
new(
SourceName: "MultiTable2_Bar_idx_btree",
AccessorName: null,
AccessorName: "Bar",
Algorithm: new SpacetimeDB.Internal.RawIndexAlgorithm.BTree([2])
)
],
Expand Down Expand Up @@ -1347,7 +1347,7 @@ SpacetimeDB.BSATN.ITypeRegistrar registrar
[
new(
SourceName: "PublicTable_Id_idx_btree",
AccessorName: null,
AccessorName: "Id",
Algorithm: new SpacetimeDB.Internal.RawIndexAlgorithm.BTree([0])
)
],
Expand Down Expand Up @@ -1430,12 +1430,12 @@ SpacetimeDB.BSATN.ITypeRegistrar registrar
[
new(
SourceName: "RegressionMultipleUniqueIndexesHadSameName_Unique1_idx_btree",
AccessorName: null,
AccessorName: "Unique1",
Algorithm: new SpacetimeDB.Internal.RawIndexAlgorithm.BTree([0])
),
new(
SourceName: "RegressionMultipleUniqueIndexesHadSameName_Unique2_idx_btree",
AccessorName: null,
AccessorName: "Unique2",
Algorithm: new SpacetimeDB.Internal.RawIndexAlgorithm.BTree([1])
)
],
Expand Down Expand Up @@ -1553,7 +1553,7 @@ SpacetimeDB.BSATN.ITypeRegistrar registrar
[
new(
SourceName: "SendMessageTimer_ScheduledId_idx_btree",
AccessorName: null,
AccessorName: "ScheduledId",
Algorithm: new SpacetimeDB.Internal.RawIndexAlgorithm.BTree([0])
)
],
Expand Down
2 changes: 1 addition & 1 deletion crates/bindings-csharp/Codegen/Module.cs
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ public string GenerateIndexDef(TableAccessor tableAccessor) =>
$$"""
new(
SourceName: "{{StandardIndexName(tableAccessor)}}",
AccessorName: null,
AccessorName: "{{AccessorName}}",
Algorithm: new SpacetimeDB.Internal.RawIndexAlgorithm.{{Type}}([{{string.Join(
", ",
Columns.Select(c => c.Index)
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading