Add generic zodb-convert support for all storage backends#38
Merged
Conversation
Generate storage-agnostic convert-import.conf and convert-export.conf for all non-filestorage backends (RelStorage, PGJsonb, ZEO) using the generic zodb-convert tool. Filestorage is always the portable format on the other side of the conversion. - Add tagmarker parameter to pgjsonb() and zeo() macros in db.conf - Add db_convert_import/export_* settings to cookiecutter.json - Create convert-import.conf and convert-export.conf templates - Update post_gen_project.py for directory creation and file cleanup - Deprecate RelStorage-specific zodbconvert configs in favor of zodb-convert - Add migration how-to guide (docs/sources/how-to/migrate-storage.md) - Update storage-backends explanation and backend how-to guides - Keep existing relstorage-import/export.conf for backward compatibility Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
convert-import.confandconvert-export.conffor all non-filestorage backends (RelStorage, PGJsonb, ZEO) using the generic zodb-convert toolzodbconvertconfigs for backward compatibilityzodb-convertapproachChanges
tagmarkerparameter topgjsonb()andzeo()macros indb.conf(relstorage already had it)db_convert_*settings tocookiecutter.jsonconvert-import.confandconvert-export.conftemplatespost_gen_project.pyfor directory creation and file cleanupdocs/sources/how-to/migrate-storage.md)Test plan
convert-import.confrenders correctly for pgjsonb, relstorage, zeoconvert-export.confrenders correctly for pgjsonb, relstorage, zeo🤖 Generated with Claude Code