Skip to content

Conversation

@tamaro-skaljic
Copy link
Contributor

@tamaro-skaljic tamaro-skaljic commented Nov 27, 2025

Description of Changes

The trait has already been implemented for ReducerContext and TxContext, but implementation for AnonymousViewContext and ViewContext is still missing.

Background why I need this change

In SpacetimeDSL, I currently have the ReducerContext hard-coded as a prerequisite for creating a DSL instance (see https://github.com/tamaro-skaljic/SpacetimeDSL/blob/main/src/lib.rs#L9-L33) .

With the addition of

  • ViewContext,
  • AnonymousViewContext,
  • ProcedureContext, and
  • TxContext,

I am now faced with the dilemma that I also have to support SpacetimeDSL with the other contexts.

I hope to be able to use spacetimedb::DbContext<DbView = spacetimedb::Local> and spacetimedb::DbContext<DbView = spacetimedb::LocalReadOnly> as a common denominator.

(I signed the CLA)

API and ABI breaking changes

No

Expected complexity level and risk

1

Signed-off-by: Tamaro Skaljic <49238587+tamaro-skaljic@users.noreply.github.com>
@tamaro-skaljic
Copy link
Contributor Author

@JulienLavocat Would you mind reviewing or delegating to a co-worker from you? I need the change to support views in SpacetimeDSL.

@CLAassistant
Copy link

CLAassistant commented Dec 1, 2025

CLA assistant check
All committers have signed the CLA.

@joshua-spacetime
Copy link
Collaborator

@tamaro-skaljic can you sign the cla again?

@tamaro-skaljic
Copy link
Contributor Author

@joshua-spacetime Done.

@joshua-spacetime joshua-spacetime added this pull request to the merge queue Dec 2, 2025
Merged via the queue into clockworklabs:master with commit 87bc15c Dec 2, 2025
20 checks passed
@tamaro-skaljic tamaro-skaljic deleted the patch-1 branch December 10, 2025 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants