DataGrip 2020.1

Adds run configurations and utPLSQL testing framework support.
April 8, 2020
New Version

Features

Run configurations

  • Configuration for running script files - Before, you could only run files one by one. This could be especially frustrating if the files included dependencies and the order was crucial. Now, you can run several files at once. Choosing to run multiple files creates the run configuration. In this configuration, you can reorder the files, add new ones, and run other programs or configurations before launch. Your run configuration will be saved automatically. If you want to run this configuration several times but you only want to change the target, tick the Show this page checkbox, which will offer you the option to change the target, as well as some other options, every time you run the configuration.
  • Configuration for running code - You can also create a configuration that will run a saved snippet of code.
  • Managing run configurations - Saved run configurations can be found either on the Navigation bar or in the Run menu.

Test frameworks support

  • utPLSQL - utPLSQL is a popular framework for testing PL/SQL code in Oracle databases. This release includes support for it, which means that you can now run tests and test packages without having to leave the code editor. Just click the small green play button in the left-hand pane. A temporary configuration is created with each run. It will be deleted after some time, but you can create a permanent configuration in the utPLSQL section. Also added Run by tag functionality.
  • tSQLt - DataGrip 2020.1 also adds support for tSQLt, the test framework for SQL Server. To run one or more tests from the database explorer, press Ctrl+Shift+F10.

Data editor

  • Results in editor - Now you can see results in the code editor. There is also a button on the toolbar that toggles between the two modes only for the current file.
  • Geo viewer - To get a view of the geographical data in the data editor, click the Gear icon and then select Show Geo Viewer.
  • Filtering data in MongoDB - Added support for filtering in the data editor for MongoDB.

Export options

  • Export to Excel
  • Better usability - Cleaned up the menu and created a dialog window for exporting.
  • Text data viewer - You can now observe tables or results in the text format. Choose your preferred data format in the extractor drop-down.

Connectivity

  • New authentication options - Added support for pg_pass in PostgreSQL. Also added the ability to use the domain credentials for the SQL Server if you’re using the jTds driver. This used to be way more complicated and required a lot of configuration in the Advanced tab.
  • Shared SSH configuration - Now you can create a configuration for the SSH tunnel and use it in many data sources or even projects.

Query console

  • Update preview - There is a new preview intention action for the UPDATE statement. Using this action will cause DataGrip to simply run a SELECT statement with the same WHERE clause.
  • Easy navigation to Execute settings - If your file contains several queries, when you run one of them you’ll see the chooser. Some people love this chooser, but some don’t. It's now easier to customize the behavior of the Execute action. The Customize link pictured on the left will lead you to Settings/Preferences, where you can define whether you want to see the chooser or always run the statement under the caret. You can also choose another type of behavior.
  • Datetime injection - Now, if you use DATE before a string literal to convert it, DataGrip understands that this string contains a date and highlights it accordingly. The IDE also warns you if something is wrong with this data. At the moment, this feature only works with this type of conversion for MySQL, Oracle, DB2, and H2.
  • Better coding assistance for MongoDB
    • Resolution and completion for collection names.
    • Completion for methods.

Navigation and search

  • Context data sources scope - It’s possible to search for an object in the context data source, which is the data source you are working with at the moment. The context can be defined either from the console you are working with, the data editor, or by selecting it in the database explorer. If you select several data sources, the search will be performed in all of them.
  • Structural Search - This is another concept from other IDEs that is making its way to DataGrip. At the moment, the implementation of it is very basic. You can search for types, expressions and clauses.

Working with files

  • CSV file type - DataGrip now has a registered *.csv file type. This means that you will no longer get a notification about CSV supporting available plugins. DataGrip also has the ability to edit CSV files as tables. You will see a floating toolbar with the Edit as Table button. If you click this button and define the CSV format in the corresponding dialog, then the editable table with the content of your CSV file will open. Two tabs for the file become visible: Text and Data.
  • Attach directory - The File | Open menu now attaches the directory to the project. Just to be clear, the attached directory is the directory you see in the Files tool window.
  • Mark as plain text - If you need to edit a really huge script, you can now mark it as plain text and open it for editing. Highlighting and coding assistance will be off, so you can modify it without any performance lag.

Database tree view

  • Introduced a UI for creating users and roles. Also enhanced the UI for creating schemas and databases. It is now possible to define various attributes and comments.
Configuration for running script files

DataGrip

A database IDE that is tailored to suit the specific needs of professional SQL developers and DBAs.

DataGrip is also available in:

Got a Question?

Live Chat with our JetBrains licensing specialists now.