You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[write stage0] add Transaction with commit info and commit implementation (#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 <scovich@users.noreply.github.com>
Co-authored-by: Nick Lanham <nicklan@users.noreply.github.com>
0 commit comments