mumble/src/database/MySQLConnectionParameter.h
Robert Adam 2521806ee6 FEAT(server): Implement new database backend
This commit implements a new, Qt-independent mechanism for accessing and
handling a database. It fully supports SQLite, MySQL and PostgreSQL.
2024-08-20 19:36:02 +02:00

34 lines
897 B
C++

// Copyright 2022 The Mumble Developers. All rights reserved.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file at the root of the
// Mumble source tree or at <https://www.mumble.info/LICENSE>.
#ifndef MUMBLE_DATABASE_MYSQLCONNECTIONPARAMETER_H_
#define MUMBLE_DATABASE_MYSQLCONNECTIONPARAMETER_H_
#include "database/Backend.h"
#include "database/ConnectionParameter.h"
#include <string>
namespace mumble {
namespace db {
class MySQLConnectionParameter : public ConnectionParameter {
public:
MySQLConnectionParameter(const std::string &dbName);
std::string dbName;
std::string userName = "";
std::string password = "";
std::string host = "";
std::string port = "";
virtual Backend applicability() const override;
};
} // namespace db
} // namespace mumble
#endif // MUMBLE_DATABASE_MYSQLCONNECTIONPARAMETER_H_