DatabaseConfiguration

Search for usage in LXR

DatabaseConfiguration Class Reference

#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 QStringtype () const
 
const std::optional< QString > & userName () const
 

Detailed Description

Options for connecting to a database.

Definition at line 37 of file threadeddatabase.h.

Constructor & Destructor Documentation

◆ DatabaseConfiguration()

DatabaseConfiguration::DatabaseConfiguration ( )

Definition at line 270 of file threadeddatabase.cpp.

Member Function Documentation

◆ databaseName()

const std::optional< QString > & DatabaseConfiguration::databaseName ( ) const

Definition at line 307 of file threadeddatabase.cpp.

◆ hostName()

const std::optional< QString > & DatabaseConfiguration::hostName ( ) const

Definition at line 299 of file threadeddatabase.cpp.

◆ password()

const std::optional< QString > & DatabaseConfiguration::password ( ) const

Definition at line 323 of file threadeddatabase.cpp.

◆ setDatabaseName()

void DatabaseConfiguration::setDatabaseName ( const QString & databaseName)

Set the name of the database (path of the file for SQLite)

Definition at line 303 of file threadeddatabase.cpp.

◆ setHostName()

void DatabaseConfiguration::setHostName ( const QString & hostName)

Set the hostname.

Definition at line 295 of file threadeddatabase.cpp.

◆ setPassword()

void DatabaseConfiguration::setPassword ( const QString & password)

Set password.

Definition at line 319 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 276 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 280 of file threadeddatabase.cpp.

◆ setUserName()

void DatabaseConfiguration::setUserName ( const QString & userName)

Set user name.

Definition at line 311 of file threadeddatabase.cpp.

◆ type()

const QString & DatabaseConfiguration::type ( ) const

Get the name of the database driver.

Definition at line 291 of file threadeddatabase.cpp.

◆ userName()

const std::optional< QString > & DatabaseConfiguration::userName ( ) const

Definition at line 315 of file threadeddatabase.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:18:56 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.