Spaces:
Paused
Paused
A newer version of the Gradio SDK is available:
6.2.0
metadata
title: SchemaSync
app_file: main.py
sdk: gradio
sdk_version: 5.25.0
SchemaSync
SchemaSync is a tool for managing database schema changes and value merges with automatic foreign key detection.
Features
- Merge database values while automatically updating all related tables
- Preview changes before applying them
- Easy-to-use web interface built with Gradio
- Supports PostgreSQL databases
Installation
- Clone the repository
- Install dependencies:
pip install -r requirements.txt - Configure your database connection in
.envfile
Usage
- Start the application:
python main.py - Open the web interface at http://localhost:7860
- Select an action (e.g., Merge Values)
- Enter the required information:
- Table name
- Column name
- Values to merge from (comma-separated)
- Target value
- Click "Preview Changes" to see what would be changed
- Click "Run Operation" to apply the changes
Development
The project is structured as follows:
schema_sync/__init__.py- Package initializationapp.py- Gradio web interfaceconfig.py- Configuration handlingdb_connector.py- Database connectionschema_inspector.py- Schema inspection and foreign key detectionmerge_operations.py- Core merge functionality
main.py- Application entry pointrequirements.txt- Dependencies