Export DB Schema as DBML

Does anyone know of utilities to export a DB schema as DBML file?
Thanks. Jerry

Hi Jerry,

Thank you for reaching out to us.
I am Huy from the dbdiagram team.

To export the database schema to a DBML file, install CLI | DBML on your computer. Then, there are two options:

  1. Use the db2dbml command. This CLI command will fetch the database schema directly from your database and convert the schema info to DBML. Currently, it supports: Postgres, MySQL, and SQL Server. Read more.
  2. Use the sql2dbml command. To use this command, you will need to dump DDL from your database. Currently, this command support Postgres, MySQL, SQL Server, and Snowflake. Read more.

Best regards,
Huy Phung