Run an SQL file for several data sources
In the Project tool window (Alt+1), select file or files that you want to run.
Right-click the selection and invoke Run <configuration_name> (or press Ctrl+Shift+F10). This action creates a temporary run configuration.
In the Edit Configuration window that opens, click Add in the Target data source / schema pane and select data sources or schemes against which you want to run the selected files.
You can click Recent to select data sources that you used recently.
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 Run/debug configurations.
Open the Run/Debug Configuration dialog in one of the following ways:
Selectfrom the main menu.
With the Navigation bar visible ( ), choose from the run/debug configuration selector.
Press Alt+Shift+F10 and then press 0.
In the Run/Debug Configuration dialog, click the Add New Configuration icon () and select Database 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 database scripts. This setting is dialect-dependent.
If you select a data source as a target, AppCode displays a schema in which the script will be run. It is the default schema.
Script text: script that you want to run.
Script files: SQL files that you want to run. To add files, click the Add button () and navigate to files that you want to run. If a script contains schema switching, you will see a warning ().
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.
Apply the changes and close the dialog.
Click the Run <configuration_name> button .