ERD Import and Database Apply

NeoSQL supports both Reverse Engineering, which brings an existing database into an ERD, and Forward Engineering, which applies ERD changes to the database.

Add DB Tables to an ERD

Bring existing DB tables in by dragging them from the left tree onto the canvas, or by using Add to current ERD in the table context menu. Imported tables are populated with columns, PK, FK, indexes, and constraints.

Note:

A specific-Schema ERD accepts only tables from the same Schema. An all-Schema ERD can handle multiple Schemas in the same Connection and Database.

DDL Import

Use Import DDL in the canvas context menu to parse CREATE TABLE plus related ALTER TABLE and CREATE INDEX statements into the ERD. Paste DDL directly or drop a .sql or .txt file, then select the tables to import.

ItemDescription
DBMSMySQL/MariaDB, PostgreSQL, SQLite, and SQL Server are parsed with their own syntax. Oracle and H2 are handled with approximate parsing based on PostgreSQL syntax, with guidance shown in the UI.
SchemaIf the ERD is dedicated to one Schema, that Schema is fixed. For an all-Schema ERD, select it in the modal.
Parse resultShows each table's column count plus PK, FK, and Index counts, and lets you select only the tables you want.
ConflictIf a table with the same name already exists in the target Schema or names are duplicated inside the DDL, the item is disabled and the reason is shown.
Ignored statementsShows statements that are not import targets or were merged into other statements, together with line numbers and reasons.
Parse errorsShows the error location, a readable message, and the problematic syntax together.

Apply ERD Changes to DB

Run Apply Changes to DB from the right info panel or a table node to preview changes as DDL. After review, execute it to apply the changes to the actual database.

DDL preview for ERD changes
Change TypeGenerated Action
New tableCREATE TABLE, PK, index, FK, and comment DDL
Column changesADD/MODIFY/RENAME/DROP COLUMN, defaults, and generated-column changes
Keys and indexesADD/DROP PRIMARY KEY, INDEX, UNIQUE, CHECK
FK changesADD/DROP FOREIGN KEY
Table deletionConfirm DROP TABLE targets
Tip

Some actions may be disabled depending on the DBMS and project permissions.