eric7.SqlBrowser.SqlConnectionDialog

Module implementing a dialog to enter the connection parameters.

Global Attributes

None

Classes

SqlConnectionDialog Class implementing a dialog to enter the connection parameters.

Functions

None


SqlConnectionDialog

Class implementing a dialog to enter the connection parameters.

Derived from

QDialog, Ui_SqlConnectionDialog

Class Attributes

None

Class Methods

None

Methods

SqlConnectionDialog Constructor
__updateDialog Private slot to update the dialog depending on its contents.
getData Public method to retrieve the connection data.
on_databasePicker_textChanged Private slot handling the change of the database name.
on_driverCombo_activated Private slot handling the selection of a database driver.

Static Methods

None

SqlConnectionDialog (Constructor)

SqlConnectionDialog(parent=None)

Constructor

parent (QWidget)
reference to the parent widget

SqlConnectionDialog.__updateDialog

__updateDialog()

Private slot to update the dialog depending on its contents.

SqlConnectionDialog.getData

getData()

Public method to retrieve the connection data.

Return:
tuple giving the driver name, the database name, the user name, the password, the host name and the port
Return Type:
tuple of (str, str, str, str, str, int)

SqlConnectionDialog.on_databasePicker_textChanged

on_databasePicker_textChanged(_txt)

Private slot handling the change of the database name.

_txt (str)
text of the edit (unused)

SqlConnectionDialog.on_driverCombo_activated

on_driverCombo_activated(_index)

Private slot handling the selection of a database driver.

_index (int)
index of the selected entry (unused)
Up