DBeaver, export from database Postgres, table structure (properties) into file .txt

Iani M.D. picture Iani M.D. · Jul 27, 2018 · Viewed 49.1k times · Source

I have little problem with DBeaver. I want to export my structure from each table from database in file .txt. I found how to export all data but I don't need this data, just table structure. If you have some solutions for export table structure .csv it'll be good.

Here is a an image about structure of the table:

https://imgur.com/a/oTVMFhw

Answer

Cloudranger picture Cloudranger · Feb 3, 2019

If you are happy to have the table structures as SQL CREATE statements, then you can just go to the navigator panel on the left, into "Tables", select all the tables, then right click and Choose "Generate SQL" -> DDL