Extending the functionality of database tools
The IntelliJ IDEA distribution includes example extension scripts which you can access using the Scratches view of the Project tool window.
Extensions/Database Tools and SQL/data/extractors folder contains the scripts that convert table data into CSV, HTML, JSON, SQL INSERTs and XML formats (see e.g. Specifying data output format and options). The
Extensions/Database Tools and SQL/schema folder contains the scripts that generate a Java entity class for a table (see Generating Java entity classes for tables and views).