Script schema of the entire database with Datagrip

vittore picture vittore · Jul 27, 2016 · Viewed 9.9k times · Source

Is it possible to script schema of the entire database (SQL Server or Postgres) using datagrip?

I know I can get DDL for table and view and source for each stored procedure / function on it's own.

Can I get one script for all objects in database at once?

Alternatively, is there a way to search through code of all routines at once, say I need to find which ones are using #table temp table?

Answer

RobbZ picture RobbZ · Aug 31, 2016

I was looking for this today and just found it. If you right click the schema you want to copy and choose "Copy DDL" this will copy the create script to the clipboard.