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
Transaction::new() only needs &Database (not &mut) because:
- We only call db.clone() which doesn't mutate the Database
- All transaction operations go through the C API via get_ref()
- This makes the API more flexible - no need for mutable Database
This allows usage like:
let db = Database::open("test", None)?; // immutable
let transaction = db.begin_transaction()?; // works now
0 commit comments