mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-07-24 15:05:26 -04:00
* [EGD-3158] added UT for CallogTable and CalllogRecord * [EGD-3343] added notifications db
36 lines
748 B
C++
36 lines
748 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
|
|
namespace db
|
|
{
|
|
/// virtual query input interface
|
|
class Query
|
|
{
|
|
public:
|
|
enum class Type
|
|
{
|
|
Create,
|
|
Read,
|
|
Update,
|
|
Delete
|
|
};
|
|
|
|
Query(Type type) : type(type)
|
|
{}
|
|
virtual ~Query() = default;
|
|
|
|
const Type type;
|
|
|
|
[[nodiscard]] virtual auto debugInfo() const -> std::string = 0;
|
|
};
|
|
|
|
/// virtual query output (result) interface
|
|
class QueryResult
|
|
{
|
|
public:
|
|
virtual ~QueryResult() = default;
|
|
[[nodiscard]] virtual auto debugInfo() const -> std::string = 0;
|
|
};
|
|
} // namespace db
|