(&self)
| 240 | |
| 241 | impl PristineDatabase { |
| 242 | fn begin_read(&self) -> Result<redb::ReadTransaction, redb::TransactionError> { |
| 243 | match self { |
| 244 | Self::Writable(db, _) => db.begin_read(), |
| 245 | Self::ReadOnly(db) => db.begin_read(), |
| 246 | } |
| 247 | } |
| 248 | |
| 249 | /// The writable database handle, or an error for read-only pristines. |
| 250 | fn writable_db(&self) -> PristineResult<&Database> { |
no outgoing calls