DatabaseConfiguration
#include <threadeddatabase.h>
Public Member Functions | |
DatabaseConfiguration (const DatabaseConfiguration &) | |
const std::optional< QString > & | databaseName () const |
const std::optional< QString > & | hostName () const |
const std::optional< QString > & | password () const |
void | setDatabaseName (const QString &databaseName) |
void | setHostName (const QString &hostName) |
void | setPassword (const QString &password) |
void | setType (const QString &type) |
void | setType (DatabaseType type) |
void | setUserName (const QString &userName) |
const QString & | type () const |
const std::optional< QString > & | userName () const |
Detailed Description
Options for connecting to a database.
Definition at line 37 of file threadeddatabase.h.
Member Function Documentation
◆ setDatabaseName()
void DatabaseConfiguration::setDatabaseName | ( | const QString & | databaseName | ) |
Set the name of the database (path of the file for SQLite)
Definition at line 299 of file threadeddatabase.cpp.
◆ setHostName()
void DatabaseConfiguration::setHostName | ( | const QString & | hostName | ) |
Set the hostname.
Definition at line 291 of file threadeddatabase.cpp.
◆ setPassword()
void DatabaseConfiguration::setPassword | ( | const QString & | password | ) |
Set password.
Definition at line 315 of file threadeddatabase.cpp.
◆ setType() [1/2]
void DatabaseConfiguration::setType | ( | const QString & | type | ) |
Set the name of the database driver. If it is included in DatabaseType, use the enum overload instead.
Definition at line 272 of file threadeddatabase.cpp.
◆ setType() [2/2]
void DatabaseConfiguration::setType | ( | DatabaseType | type | ) |
Set the type of database. If DatabaseType doesn't include the one you need, use the QString overload instead.
Definition at line 276 of file threadeddatabase.cpp.
◆ setUserName()
void DatabaseConfiguration::setUserName | ( | const QString & | userName | ) |
Set user name.
Definition at line 307 of file threadeddatabase.cpp.
◆ type()
const QString & DatabaseConfiguration::type | ( | ) | const |
Get the name of the database driver.
Definition at line 287 of file threadeddatabase.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Sep 27 2023 03:47:03 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.