mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2025-09-23 16:49:07 +03:00
Connect connection has been refactored
This commit is contained in:
@@ -369,6 +369,16 @@ void ConnectionDesc::setName(const QString &value)
|
||||
m_connectionName=value;
|
||||
}
|
||||
|
||||
bool ConnectionDesc::isEqual(const QSqlDatabase &db)
|
||||
{
|
||||
return (db.databaseName() == m_databaseName) &&
|
||||
(db.driverName() == m_connectionDriver) &&
|
||||
(db.hostName() == m_connectionHost) &&
|
||||
(db.connectionName() == m_connectionName) &&
|
||||
(db.userName() == m_user) &&
|
||||
(db.password() == m_password);
|
||||
}
|
||||
|
||||
QueryDesc::QueryDesc(QString queryName, QString queryText, QString connection)
|
||||
:m_queryName(queryName), m_queryText(queryText), m_connectionName(connection)
|
||||
{}
|
||||
|
Reference in New Issue
Block a user