Open jamadden opened 7 years ago
I've never used RelStorage, but I'd love to support it.
There are two ways of using zodbbrowser:
Include it in your application -- then @@zodbbrowser will use whatever storage you already have configured. If something breaks with RelStorage, please file a bug and I'll try to fix it.
Run it as a standalone application -- this would need a patch to support opening the kind of storage you want. I'd be happy to review PRs.
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.).
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)
.
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.