Begin a write transaction on the underlying database.
(&self)
| 315 | |
| 316 | /// Begin a write transaction on the underlying database. |
| 317 | pub fn begin_write(&self) -> crate::Result<WriteTransaction> { |
| 318 | self.db |
| 319 | .begin_write() |
| 320 | .map_err(|e| redb_err("begin write txn", e)) |
| 321 | } |
| 322 | |
| 323 | /// Get the underlying database handle. |
| 324 | pub fn db(&self) -> &Arc<Database> { |