mgedmin / zodbbrowser

ZODB browser
http://launchpad.net/zodbbrowser
Other
19 stars 6 forks source link

Can it work with RelStorage? #23

Open jamadden opened 7 years ago

jamadden commented 7 years ago

Or, ideally, any storage stack that can be configured in zcml (e.g., zc.zlibstorage).

I’ve worked with and benefited from this project in the past and it’s really great! But at this time all our test and production dbs are on relstorage, so to use it, as far as I can tell from the docs, requires a time consuming conversion to filestorage.

mgedmin commented 7 years ago

I've never used RelStorage, but I'd love to support it.

There are two ways of using zodbbrowser:

The second way is a bit safer (I'm opening the storage in read-only mode, to prevent accidental data corruption, which has happened in the past!), but also a bit more complicated (you'll want to install it into the same Python virtualenv/buildout as your application, so you can use the right __repr__ methods etc.).

mgedmin commented 5 years ago

What might work best is to do what zodbupdate does: support accepting a config file name that then gets read and passed to ZODB.config.storageFromFile(config_text).