View runs a readonly transaction on the metadata store.
(fn func(*bolt.Tx) error)
| 265 | |
| 266 | // View runs a readonly transaction on the metadata store. |
| 267 | func (m *DB) View(fn func(*bolt.Tx) error) error { |
| 268 | return m.db.View(fn) |
| 269 | } |
| 270 | |
| 271 | // Update runs a writable transaction on the metadata store. |
| 272 | func (m *DB) Update(fn func(*bolt.Tx) error) error { |