The SQL scripts generated by ChartDB are schema definitions based on your diagram. They are intended to help you create the structure in your database. These scripts are not meant for data migration or direct execution on production databases without review.

1

Access Export SQL

Navigate to the File menu in the top navigation bar and hover over Export SQL.

2

Choose SQL Flavor

Select your preferred SQL dialect from the submenu:

  • Generic SQL: Provides standard SQL compatible across most database systems.
  • PostgreSQL, MySQL, SQL Server, MariaDB, SQLite: Generates SQL tailored to specific database systems.

PostgreSQL, MySQL, SQL Server, MariaDB, and SQLite exports are available exclusively for signed-in users. Generic SQL export is available for all users.

3

Copy SQL Script

A modal window will appear displaying the generated SQL script in a text area. Click the Copy button to copy the script to your clipboard.