Description

Update executes a function within the context of a read-write managed transaction. If no error is returned from the function then the transaction is committed. If an error is returned then the entire transaction is rolled back. Any error that is returned from the function or returned from the commit is returned from the Update() method.

Attempting to manually commit or rollback within the function will cause a panic.

Update is referenced in 327 repositories

github.com/boltdb/bolt github.com/fabxc/pagebuf github.com/Zandrr/heketi

...