Extending DataGrip functionality
The DataGrip distribution includes example extension scripts which you can access using the Scratches view of the Files tool window.
Extensions/DataGrip/data/extractors folder contains the scripts that convert table data into CSV, HTML, JSON, SQL INSERTs and XML formats. The
Extensions/DataGrip/schema folder contains the scripts that generate a Java entity class for a table (see Generating Java entity classes for tables and views).