Skip to content

Add query context support to Ra queries#579

Merged
kjnilsson merged 1 commit intomainfrom
query-context
Mar 9, 2026
Merged

Add query context support to Ra queries#579
kjnilsson merged 1 commit intomainfrom
query-context

Conversation

@kjnilsson
Copy link
Copy Markdown
Contributor

Allow query functions to optionally receive server metadata (index, term, machine version) alongside the machine state. Arity-2 funs and 4-tuple MFAs with [with_context] opt-in to receiving the context, while existing arity-1 funs and 3-tuple MFAs continue to work unchanged.

Allow query functions to optionally receive server metadata (index, term,
machine version) alongside the machine state. Arity-2 funs and 4-tuple
MFAs with [with_context] opt-in to receiving the context, while existing
arity-1 funs and 3-tuple MFAs continue to work unchanged.
@kjnilsson kjnilsson marked this pull request as ready for review March 5, 2026 15:54
@kjnilsson kjnilsson merged commit a5a52cc into main Mar 9, 2026
7 checks passed
@dumbbell-rabbitmq dumbbell-rabbitmq deleted the query-context branch March 23, 2026 14:55
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.

1 participant