SpacetimeDB icon indicating copy to clipboard operation
SpacetimeDB copied to clipboard

Use camel case for typescript unique indexes

Open jsdt opened this issue 8 months ago • 0 comments

Description of Changes

Typescript field names use camel case, but indexes were using snake case, which meant they could never find anything if the field has multiple words in it.

API and ABI breaking changes

For tables in the generated typescript code, this will change the name of the property that is generated for unique indexes. This could be considered a breaking change, but any code using those properties is already broken.

Expected complexity level and risk

1

Testing

I tested by adding a table to the quickstart app with a primary key of entity_id, and verifying the behavior of the generated code before and after this change.

jsdt avatar Apr 16 '25 16:04 jsdt