Skip to content

JSON Storage Migration#67

Open
metaory wants to merge 2 commits intovoid-rs:mainfrom
metaory:master
Open

JSON Storage Migration#67
metaory wants to merge 2 commits intovoid-rs:mainfrom
metaory:master

Conversation

@metaory
Copy link

@metaory metaory commented Jan 2, 2025

Transitions void from protobuf to JSON storage format

KEY CHANGES

  • Replaces protobuf with JSON storage
  • Removes protobuf dependency
  • Adds migration tool for existing databases
  • Maintains data compatibility
  • Reduces codebase complexity

BENEFITS

  • Human Readable: Data inspectable/editable with any text editor
  • Debuggable: Easy examination of corrupted files
  • Portable: Universal format support across tools/languages
  • Versionable: Clean diffs in version control
  • Minimal: Only essential data stored

MIGRATION

Existing users can migrate their databases using the provided script:

scripts/migrate.sh path/to/old/database path/to/new.json

NOTES

  • Auto-generated data excluded from storage:
    • Node coordinates (auto-arranged)
    • Colors (randomly generated)
    • Selection state
    • Ephemeral UI state

RESOLVES

This was referenced Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant