-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[write stage0] add Transaction with commit info and commit implementa…
…tion (#370) This PR does 4 main things: 1. ~reorganize `transaction.rs` so that the transaction action is now moved to actions module~ **EDIT:** now in #386 1. new `Transaction` API which includes: a. `Table.new_transaction()` to create a new transaction from the latest snapshot of the table b. `Transaction.with_commit_info(engine_commit_info: Box<dyn EngineData>)` to add single-row commit info in the form of a `map<string, string>`. required to commit. c. `Transaction.with_operation(operation: String)` to set the operation name of the transaction (persisted in commit info) d. `Transaction.commit() // consumes transaction` to commit the transaction to the log (currently only supporting committing the commit info) 1. new engine API: `write_json_file(impl Iterator<Item = Box<dyn EngineData>>)` (and a default engine implementation for this) 1. new integration test suite `write.rs` to house many of our write tests as it's implemented resolves #378 --------- Co-authored-by: Ryan Johnson <[email protected]> Co-authored-by: Nick Lanham <[email protected]>
- Loading branch information
1 parent
f5d0a42
commit 80f08db
Showing
12 changed files
with
1,109 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.