Programmatic Diagram Updates

ChartDB offers powerful capabilities to automatically sync and update your diagrams based on changes made to your database schema without requiring database credentials. This feature ensures your database diagrams always reflect the current state of your database structure.

Tables maintain their positions, colors, and areas during updates, preserving your carefully designed diagram layout.

Key Benefits

  • Always Up-to-Date: Keep diagrams in sync with your evolving database structure
  • No Credentials Required: Sync without exposing sensitive database access details
  • Automation-Ready: Integrate diagram updates into CI/CD pipelines
  • Time-Saving: Eliminate manual diagram updates after schema changes
  • Documentation Accuracy: Maintain reliable documentation for your team

How It Works

The synchronization process uses our API to update diagrams whenever changes are detected in your database schema. You can trigger updates:

  1. Automatically via webhooks when database migrations run
  2. As part of CI/CD pipelines
  3. Through scheduled jobs
  4. Manually via API calls when needed

Implementation Examples

see our API Documentation.

Supported Database Types

ChartDB supports schema synchronization for multiple database types:

  • PostgreSQL
  • MySQL
  • MariaDB
  • SQL Server
  • SQLite

Best Practices

  • Include diagram updates in your database migration process
  • Set up monitoring for sync failures
  • Consider versioning your diagrams alongside schema changes
  • Use environment-specific diagrams for development, staging, and production

For detailed implementation instructions, authentication methods, and complete API reference, see our API Documentation.