Add new `zodb watch` command that is both demonstration of just added ZODB Watch API (see previous patch), and could be useful for a ZODB database administration / monitoring. See zodbtools/watch.go for description.
This is a new API only existing on the go implementation of ZODB if I understood correctly.
It seems useful to get insights of what's happening "live". I found myself using
tail -F data.fssome times, it seems a more sophisticated way of doing this :)
@jerome, thanks for feedback. Yes watch API in this form exists only in zodb/go. Zodb/py has something less general, but more or less equivalent. However in zodb/py it is optional and not all storage drivers support it - in particular filestorage/py does not. Contrary zodb/go requires all storage drivers to support watch notifications, and in particular fs1/go does support it already. Zeo/go and neo/go do not yet, but adding this support is simpler to teaching fs1 to detect updates and is just currently stubbed as todo. Once again, it does work for filestorage already, so maybe this tool might be sometimes useful.
Thanks again for feedback,