What's New in DataGrip 2017.3

Database tree view

Group data sources

Closing a ticket with a number less than 100 is not something that frequently happens. Especially when it’s for a long-awaited feature. We are happy to introduce our new feature: group data sources. Press F6 or choose Move to group… from the context menu.

Drag-and-drop multiple objects

Now you can drag-n-drop several objects from the database tree view to an editor. Well, if you need all of them, you can always expand wildcard with Alt+Enter, if it suits you better :)

Managing schemas

We replaced the Schemas… node in the database tree with the lightweight hover, showing the number of schemas is currently displayed. Click on it to add or hide schemas. .

Or use Context menu → Database tools → Manage selected schemas… or simply press Alt+Enter on the data source.

New supported objects

Users and roles are now displayed in PostgreSQL and AWS Redshift.

Foreign Data Wrappers and as a consequence, foreign tables, are now displayed in PostgreSQL.

SQL

Variadic templates

SQL generator

Now it is possible to use the SQL generator to generate DDL scripts with options. To do this, press Ctrl+Alt+G or choose Context menu → SQL Scripts → SQL Generator… and get the generated DDL of any kind of object (table, schema, procedure, whatever) or even several objects simultaneously.

JOIN statement completion

It has become even smarter! It now offers you the variant with the complete clause.

PostgreSQL 10 grammar support

If you are already using PostgreSQL 10 and you are seeing any incorrect code highlighting, please report it to us.

Executing queries

Variadic templates

DataGrip now prompts you to choose a database/schema along with a data source when you try to run an SQL file from the context menu.

Variadic templates

A similar enhancement: the list of data sources with related consoles will appear when attaching the console to a file.

There was only one Execute action before; now there are three of them. Change the behavior, and assign shortcuts: they are completely independent. For example, you can create an action which will execute the whole script, without having to choose the exact query from the script.

There is a small improvement for those who didn’t like to use the mouse to choose the schema of the console or the search path. Now there is an action called Set Current Schema. You can invoke it from Find Action (Ctrl+Shift+A).

Or just assign a shortcut! For example, Ctrl+Up can work. And you’ll be able to switch the context for the query console.

Data editor

We were asked to implement pasting from Excel tables. Generally to do this, it means that we need the ability to paste data in a DSV format. In DataGrip you can define any format you want, or you can let the IDE detect the format automatically. That’s how it works:

For better readability, the data editor now aligns the numerical data with the right-hand side of the column.

Before, IDE didn’t restore tabs after re-opening. Performing queries on the start is not the best idea, so now tabs are restored, and you can load the data manually.

Variadic templates

And the last enhancement in this section: values of two or three cells can be compared in Diff Viewer. Select them and press Shift+Ctrl+D

Connectivity

Better SSH support

This build of DataGrip supports:

  • Reading OpenSSH config files (~/.ssh/config and /etc/ssh/ssh_config).
  • Showing dialogue for a One Time Password.
  • Using Ssh-agent and Pageant in authentication.

Exasol support

Welcome new database vendor in the list!

Navigation

In one of the minor updates to 2017.2, we introduced a new flow for navigation. To cover all of the possible use-cases, and for those who are used to the previous versions, in 2017.3 we then added the option Navigate references to DDL editor.

With the Auto-scroll from Editor option, you can set up several types of behavior by pressing Navigate to declaration (Ctrl+B or Ctrl+Click).

So, now it works like this:

Navigate references to DDL editor On
Auto-scroll from Editor On
You’ll be taken to the DDL of the objects; the objects will be highlighted in the Database View. Focus in the Editor.

Navigate references to DDL editor On
Auto-scroll from Editor Off
You’ll be taken to the DDL of the object; nothing will be highlighted in the Database View. Focus in the Editor.

Navigate references to DDL editor Off
This will enable the “Old” behavior. The object will be highlighted in Database View; the Editor tab will remain as it is. Focus in the Database View.

The context menu in the data source was upgraded. Choose Jump to Console and you’ll now have a menu which you will be able to use to quickly switch between consoles which were created already.

Scratches and Consoles is no more found in a separate tab: they are now placed in Files.

Variadic templates

DataGrip 2017.3 provides the ability to replace the selected occurrences in the Replace In Path dialog.

Other Improvements