fjall icon indicating copy to clipboard operation
fjall copied to clipboard

Transactions

Open marvin-j97 opened this issue 1 year ago • 1 comments

We should have all the pieces to get transactions working:

  • Snapshots achieved by MVCC
  • Atomicity achieved by Batch

marvin-j97 avatar Jan 19 '24 20:01 marvin-j97

Possible API

use fjall::TxKeyspace;

let keyspace = TxKeyspace::open( ... )?;
let items = keyspace.open_partition( ... )?;

let tx = keyspace.transaction();
tx.get(&items, key)?;
tx.insert(&items, newkey, newvalue);
tx.commit()?;

marvin-j97 avatar Mar 03 '24 16:03 marvin-j97

Single-writer transactions will land in 1.1.0

marvin-j97 avatar May 25 '24 13:05 marvin-j97