![]() |
Banking_System_Server
1.0.0
Qt-based banking app for user/admin account management, transactions, secure server communication via PostgreSQL/Supabase.
|
Configuration settings for database connections. More...
#include <db.h>
Public Member Functions | |
DatabaseConfig () | |
Default constructor for DatabaseConfig. | |
DatabaseConfig (const QString &host, int port, const QString &username, const QString &password, const QString &dbname) | |
Parameterized constructor for DatabaseConfig. More... | |
void | set (const QString &host, int port, const QString &username, const QString &password, const QString &dbname) |
Sets the database configuration parameters. More... | |
Public Attributes | |
int | port |
Database port. | |
QString | host |
Database host. | |
QString | username |
Database username. | |
QString | password |
Database password. | |
QString | dbName |
Database name. | |
Configuration settings for database connections.
This structure holds the necessary parameters for configuring a database connection, including host, port, username, password, and database name.
|
inline |
Parameterized constructor for DatabaseConfig.
host | Database host. |
port | Database port. |
username | Database username. |
password | Database password. |
dbname | Database name. |
|
inline |
Sets the database configuration parameters.
host | Database host. |
port | Database port. |
username | Database username. |
password | Database password. |
dbname | Database name. |
Referenced by DB::DatabaseManager::setDbSetting().