Skip to content

Add transaction-scoped local variable storage - #4570

Draft
arnaud-lacurie wants to merge 2 commits into
mainfrom
apple/arnaud-lacurie/local-vars/1-storage
Draft

Add transaction-scoped local variable storage#4570
arnaud-lacurie wants to merge 2 commits into
mainfrom
apple/arnaud-lacurie/local-vars/1-storage

Conversation

@arnaud-lacurie

Copy link
Copy Markdown
Collaborator

Bottom of a stack splitting PR #4198 into reviewable pieces. Adds Transaction.setLocalVariable/getLocalVariables, backed by the same FDB session-map mechanism already used for BoundSchemaTemplate. No SQL surface yet -- that's added in the next PR.

Adds Transaction.setLocalVariable/getLocalVariables, backed by
RecordContextTransaction's FDBRecordContext session (the same mechanism
already used for BoundSchemaTemplate), so values live only as long as
the transaction does. No SQL surface yet — that's the next PRs in the
stack. All existing implementers of Transaction (RecordStoreAnd-
RecordContextTransaction, and the test-only InMemoryTransactionManager)
are updated to satisfy the two new interface methods.
Drop restating-the-obvious @PARAM lines and a reference to the PR stack
structure that doesn't belong in code comments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant