Common Options
The following controls are available in all of the tabs.
| Item | Description |
|---|---|
| Data Source Name | In this text box, specify the data source name. |
| Data Source Level |
Use this drop-down list to specify scope in which the data source will be available. The available options are:
|
| Test Connection | Click this button to check that the specified settings ensure successful connection to the target database. |
Database tab
In this tab, configure the JDBC data sources to use.
| Item | Description |
|---|---|
| JDBC Driver Files |
In this drop-down list, specify the library of archive to search for the class
that implements the JDBC driver of required type.
Choose one of the suggested JDBC driver sources from the list (if necessary, the selected driver files will be downloaded automatically), or
click the Browse button
and select the relevant library or archive in the Choose JDBC Driver Files dialog box that opens.
|
| The following files will be used: | This read-only list box shows all the relevant archives detected at the location specified in the JDBC Driver Files field. |
| JDBC Driver Class | From this drop-down list, select the name of the class that will implement the driver of the desired type. The list shows all the driver classes detected in the specified archives and libraries. |
| Database URL | In this field, specify the URL of the target database. |
| User Name | In this text box, type the user name to access the target database with. |
| Password | In this text box, type the password to access the target database with. |
Schemas & Tables tab
In this tab, specify the schemas
or
table name patterns to restrict the set of accessible tables in the target databases.
Specifying a schema makes sense if the target database supports schemas.
| Item | Description |
|---|---|
| Schemas | This read-only field lists all the schemas that are currently available in the system. |
| Scan for Tables | Select the check boxes next to the schemes which you want to use for retrieving tables. If you select the check box next to *, tables will be scanned in all schemes. |
| Make Default | If you select this check box next to a schema, the names of the tables accessed through this schema will be resolved by PyCharm so you do not need to write their fully qualified names. |
| Table Names Pattern |
In this text box, type a regular expression which determines the subset of accessible tables.
PyCharm will access the tables with names that match the specified pattern.
An asterisk * means that all available tables will be loaded. |
Console tab
In this tab, configure the general behaviour of the Database Console tool window.
| Item | Description |
|---|---|
| Default SQL Dialect | From this drop-down list, select the SQL dialect to be used by default. |
| Default Run Configuration | In this drop-down list, specify the run configuration to launch the Database Console tool window. |
Advanced tab
In this tab, configure the connection properties manually. This is necessary if your JDBC driver (for example, DB2) does not return the list of supported properties and therefore connection cannot be established successfully. To edit a parameter, click the Value field next to the desired parameter, and update the field contents as required.
and select the relevant library or archive in the