Skip to content

Conversation

@lishuxu
Copy link
Contributor

@lishuxu lishuxu commented Oct 28, 2025

No description provided.

/// May throw ValidationException if any update cannot be applied to the current table
/// metadata. May throw CommitFailedException if the updates cannot be committed due to
/// conflicts.
virtual void CommitTransaction() = 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want to keep backward compatibility with deprecation e.g.
[[deprecated("Use CommitTransaction() that returns Status")]]

Copy link
Member

Choose a reason for hiding this comment

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

I think we can break any existing API before 1.0.0. We just released 0.1.0 a while ago and I don't think it is ready for production yet.


/// \brief Starts a transaction to create or replace the table
///
/// \breturn the Transaction to create or replace the table
Copy link
Contributor

Choose a reason for hiding this comment

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

typo? '\return'?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch! Fixed the typo.

/// \brief Create a new transaction for this table
///
/// \return a shared pointer to the new Transaction
virtual std::shared_ptr<Transaction> NewTransaction();
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't want to add 'const' just like NewScan() and io()?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it should be const.

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