Import diagram from db connection, like postgresql, mssql or oracle
Hi Jherzon,
Currently, dbdiagram supports importing from postgreSQL, MySQL and SQL db servers. You can try following the instructions below.
- Click on the button import
- Select the DB you want to import
- You can enter SQL statements or upload .sql files
- Click the submit button to complete the process.
Thanks.
Hi @Jherzon,
Now you can connect to your DB and generate the DBML with @dbml/cli or @dbdocs. Please give it a try.
Cheers.
This appears on your roadmap for Q2 2026. Any development taking place?
Hi @adamtappis ,
It seems you are mentioning about the feature “DB/DW Direct Connection”. And this feature is still in our plan for the Q2 2026. We will notify you if there are any updates.
Also, it would be nice if you let me know that which database/dataware house that you are looking for, and what is your workflow will be if we supported this feature?
In the meantime, you can also connect to the database with the db connection then import diagram via our CLI.
Thanks.

