DataGrip 2020.3 Help

Create and edit run configurations

With the Navigation bar visible (View | Appearance | Navigation Bar), the available run configurations are displayed in the run configuration selector in the Run area:

The Edit Run Configuration window

DataGrip provides the Run/Debug Configuration dialog as a tool for handling run configurations: creating configuration profiles or changing the default ones.

Use the toolbar of the Run/Debug Configuration dialog to add, remove, or save configurations.

Run files by using run configurations

Depending on your purposes, you can edit existing or create new configurations. For more information about editing you configurations, see Create and edit run configurations.

  1. Open the Run/Debug Configuration dialog in one of the following ways:

    • Select Run | Edit Configurations from the main menu.

    • With the Navigation bar visible (View | Appearance | Navigation Bar), choose Edit Configurations from the run/debug configuration selector.

  2. In the Run/Debug Configuration dialog, click the Add New Configuration icon (the Add New Configuration icon) and select SQL Script.

    The fields that appear in the right-hand pane display the default settings for the selected configuration type.

    • Target data source / schema: databases or schemas against which you want to run your SQL code. This setting is dialect-dependent.

    • Script text: code that you want to run.

    • Script Files: SQL files that you want to run. To add files, click the Add button (the Add button) and navigate to files that you want to run.

    • Data source (utPLSQL and tSQLt): a name of a data source. utPLSQL supports Oracle. tSQLt supports Microsoft SQL Server.

    • Database (tSQLt): a name of the Microsoft SQL Server database.

    • Paths (utPLSQL and tSQLt): a qualified path to the testing package.

    • Tags (utPLSQL): tags of tests that you want to run. Use semicolon (;) as separator.

  3. Apply the changes and close the dialog.

  4. Click the Run <configuration_name> button The Run button.

    Run files by using run/debug configurations

Edit an existing run configuration

  1. Do one of the following:
    • From the main menu, choose Run | Edit Configurations.

    • With the Navigation Bar visible (View | Appearance | Navigation Bar), choose Edit Configurations from the run configurations selector.

  2. In the corresponding run configuration dialog, change parameters as required.

Last modified: 09 October 2020