1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00
Files
mariadb-columnstore-engine/utils/pron/pron.h
Leonid Fedorov 65cde8c894 feature: pron (#2908)
* feature: Special dictionary, we can pass with session veriable to modify codepaths and behaviour for testing and debugging
2023-07-21 14:02:03 +03:00

34 lines
431 B
C++

#pragma once
#include <stdexcept>
#include <string>
#include <unordered_map>
namespace utils
{
class Pron
{
private:
Pron() = default;
public:
using StringMap = std::unordered_map<std::string, std::string>;
static Pron& instance()
{
static Pron pron;
return pron;
}
const StringMap& pron()
{
return pron_;
}
void pron(std::string& pron);
private:
StringMap pron_;
};
} // namespace utils