1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
// common contains open_tmp macro mod common; #[test] fn transactor_00() { let db = open_tmp!(); { let mut tx = db.tx(); tx.insert(b"a", b"a"); tx.commit().unwrap(); } { let mut tx = db.tx(); let read = tx.get(b"a").unwrap().unwrap(); assert_eq!(read, b"a"); } }