Connection types
Connection types control how Team Edition behaves when working with a database. They help define environment-specific behavior, such as:
- transaction commit mode
- SQL execution confirmation
- automatic cleanup of idle transactions and connections
- background color for easy environment recognition
You can assign a connection type when creating or editing a connection. You can also define your own types with custom settings and colors. Connection type colors appear in the Database Navigator, all related editors and tabs:
Manage connection types¶
New connections use the Development type by default. You can switch to another default type, or create your own with custom settings.
Info
Learn more about default connection types.
Change connection type¶
- In the Database Navigator or Projects view, select a connection
- Open the connection properties by pressing F4 or by right-clicking the connection and selecting Edit connection from the context menu
- In the left pane, choose General
-
You'll find the Connection type field among the settings:
-
To confirm the change, click OK.
Create connection type¶
-
Navigate to Window -> Preferences -> Connections -> Connections types
-
Click the New button (
) to add a connection type
-
Configure the settings for the new type:
Setting Description Identifier Unique ID for the type (used internally) Name Display name shown in the UI Description Short explanation of what this connection type is for Color Visual indicator used to highlight connections of this type Confirm SQL execution Show a confirmation dialog before running INSERT
,UPDATE
, orDELETE
queriesConfirm data changes Ask for confirmation before saving changes to the database Auto-commit by default Enable autocommit mode as the default behavior. Learn more Smart commit mode Start transactions automatically for data-changing statements. Learn more Return to auto-commit Re-enable autocommit after commit or rollback (only with smart commit) End idle transactions (sec) Roll back and close transactions after being idle for the specified time Close idle connection (sec) Disconnect after inactivity. Set to 0
to disable automatic disconnectionTip
For embedded databases, Close idle connection is always ignored - they stay connected indefinitely.
-
Click Apply to save your changes, or Apply and Close to save and exit. Use Restore Defaults to undo all edits.
Edit connection type¶
- Open the connection properties (F4 or right-click the connection and select Edit connection)
- On the General page, click Edit next to the Connection type field
- Select a connection type and update its settings as described in Create connection type
- Click Apply or Apply and Close to save changes. Use Restore Defaults to reset the type.
Note
The default connection types can't be edited.
Delete connection type¶
- Open the connection properties (F4 or right-click the connection and select Edit connection)
- On the General page, click Edit next to the Connection type field
- Select the connection type you want to remove, then click the Delete button (
)
- In the confirmation dialog, click Yes to delete or No to cancel
- Click Apply or Apply and Close to save your changes.
Default connection types¶
Team Edition includes three built-in connection types:
- Development ā for local use
- Test ā for staging environments
- Production ā for live databases
You can change the type assigned to a connection or create new types, and edit or delete existing ones.
Tip
Use connection types to clearly separate environments and avoid mistakes in production.
Comparison of default types¶
Setting | Development | Test | Production |
---|---|---|---|
Autocommit | On | On | Off |
Confirm SQL execution | Off | Off | On |
Confirm data change | Off | On | On |
Smart commit mode | Off | Off | Off |
Return to auto-commit | On | On | Off |
Auto-close transactions | On | On | On |
Idle transaction timeout | 1800 seconds (30 minutes) | 900 seconds (15 minutes) | 600 seconds (10 minutes) |
Auto-close connections | On | On | On |
Idle connection timeout | 14400 seconds (4 hours) | 7200 seconds (2 hours) | 3600 seconds (1 hour) |
Background color | White | Olive green | Brick red |
Info
If Confirm SQL execution is enabled for a connection type, Team Edition will ask for confirmation before running
transactional queries like INSERT
, UPDATE
, or DELETE
.