Skip to content

Conversation

@Gozala
Copy link
Contributor

@Gozala Gozala commented Jun 19, 2025

Here we only define an interface to be implemented in a followup change. Goal is to discuss and build a consensus around what the API should be like to support desired use cases.


Summary by cubic

Added a new transactional storage interface with support for starting, committing, and aborting transactions, along with detailed error handling and consistency guarantees. This defines the API only and does not include an implementation.

Introduces IStorageTransaction with fork/commit/abort operations,
consistency guarantees, and comprehensive error handling for
transactional storage operations.
}>;

export interface IStorageAddress {
the: The;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(not blocking merging this PR)

I wonder whether we should align this with the sigil terms, starting to push these more common names further down the stack.

So type, source, path.

source is a bit odd for writes.

So second - more urgent - question: Should we go back to id in sigils? Make it (eventually) consistent throughout the codebase?

cc @ubik2 as well

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest we leave this as is for now and when we update memory implementation we can update names here also.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather not have to change sigils again, since then we'll have data with the wrong names, hence that one being more urgent. Will break it out.

@Gozala Gozala merged commit a8c0a3a into main Jun 23, 2025
6 checks passed
@Gozala Gozala deleted the feat/memory-transaction-api branch June 23, 2025 15:57
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