Skip to content

Conversation

@lcodes
Copy link
Contributor

@lcodes lcodes commented Aug 20, 2024

Description of Changes

  • New DbContext, ReducerContext types
  • Tables have handles inside a Local namespace
  • Table operations are performed through that handle

Expected complexity level and risk

3 - Rewrote the Module source generator, runtime module registration and removed the type registry.

Rationale is that by breaking tables types from table instances required fundamental changes in how the generator works and what code is emitted.

The new generator batches over all types at once and emits the full module description inside the Registration.cs generated file.

Testing

These must compile and pass the sdk test suite, for current features to keep working:

  • sdk-test-cs
  • sdk-test-connection-disconnection-cs

This one must compile for the new features to codegen properly:

  • sdk-test-multi-db-table-index-cs

@lcodes lcodes added the abi-break A PR that makes an ABI breaking change label Aug 20, 2024
@lcodes lcodes requested review from RReverser and gefjon August 20, 2024 20:15
@lcodes lcodes force-pushed the jeremie/db-connection-type-c# branch from 64a3144 to 52d1bba Compare August 21, 2024 16:55
@lcodes lcodes force-pushed the jeremie/db-connection-type-c# branch from 52d1bba to d2818e7 Compare August 21, 2024 17:04
@bfops bfops added the release-any To be landed in any release window label Aug 26, 2024
@lcodes
Copy link
Contributor Author

lcodes commented Sep 9, 2024

Moved to this PR #1682

@lcodes lcodes closed this Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

abi-break A PR that makes an ABI breaking change release-any To be landed in any release window

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants