mirror of
https://github.com/clockworklabs/SpacetimeDB.git
synced 2026-05-06 07:26:43 -04:00
a39b81b087
# Description of Changes Same change set as https://github.com/clockworklabs/SpacetimeDB/pull/4614, just targeting master. The return type of a query builder view is now a special SATS product type `{ __query__: T }`. A view with this return type now has a primary key if `T` has a primary key. This means that client codegen will generate an `OnUpdate` callback for such views. It will also generate query builder index bindings for the primary key column. # API and ABI breaking changes None. Old modules with query builder views still work, they just don't have primary keys. # Expected complexity level and risk 2 # Testing Added equivalent tests to the ones that were added in #4573 and #4572.