Managing data sources
Data source is a location of data for your application. In RubyMine, you can define the following data sources:
Database data source: operational databases that contain data (see Connecting to a database).
Data Definition Language (DDL) files: SQL files that contain data definition language statements (see Add a DDL data source).
Create a data source
Create a DDL data source
Open the Database tool window ( ).
Click the Data Source Properties icon () on the toolbar, and select DDL Data Source.
Specify the data source name.
In the DDL Files form, click the Add icon () and select necessary SQL files.
Customizing data sources
Configure data source settings
In the Database tool window ( ), select a data source that you want to change.
Click the Data Source Properties icon () on the toolbar (or press Shift+Enter).
Group data sources
If you have a number of different databases, you can group their data sources in the Database tool window ( ). To group data sources, select the necessary data source, press F6, or select Move to Group from the context menu.
Alternatively, if you want to create a new group, just drag one data source onto the other. If you want to place the data source into an existing group, drag it there.
The following options are available for data source groups in the Move to Group menu:
Create a new group for the data source.
Move the data source to the root list. This option removes the data source from a group.
Move the data source to an existing group.
Remove data sources
To remove a data source, in the Database tool window ( ), press Delete. Alternatively, you can select Remove from the context menu, or click .
Also, to remove a data source, you can use the Data Sources and Drivers window ( ). In the Data Sources and Drivers window, select the data source and press Delete. Alternatively, you can click on the toolbar, or select Remove from the context menu.