MySQL 8.0.39
Source Code Documentation
mysql_harness::ConfigBuilder Class Reference

builder for MySQL Router config files. More...

#include <config_builder.h>

Public Types

using kv_type = std::pair< std::string, std::string >
 

Static Public Member Functions

static std::string build_section (const std::string &section, const std::initializer_list< kv_type > &pairs)
 build a config file section from key-value pairs. More...
 
static std::string build_section (const std::string &section, const std::vector< kv_type > &pairs)
 
static std::string build_section (const std::string &section, const std::map< std::string, std::string > &pairs)
 
static std::string build_pair (const kv_type &pair)
 build a string from a key-value pair. More...
 

Static Private Member Functions

template<class SectionType >
static std::string build_section_ (const std::string &section, const SectionType &pairs)
 

Detailed Description

builder for MySQL Router config files.

generates a config-file strings from definition

Member Typedef Documentation

◆ kv_type

using mysql_harness::ConfigBuilder::kv_type = std::pair<std::string, std::string>

Member Function Documentation

◆ build_pair()

static std::string mysql_harness::ConfigBuilder::build_pair ( const kv_type pair)
inlinestatic

build a string from a key-value pair.

◆ build_section() [1/3]

static std::string mysql_harness::ConfigBuilder::build_section ( const std::string &  section,
const std::initializer_list< kv_type > &  pairs 
)
inlinestatic

build a config file section from key-value pairs.

◆ build_section() [2/3]

static std::string mysql_harness::ConfigBuilder::build_section ( const std::string &  section,
const std::map< std::string, std::string > &  pairs 
)
inlinestatic

◆ build_section() [3/3]

static std::string mysql_harness::ConfigBuilder::build_section ( const std::string &  section,
const std::vector< kv_type > &  pairs 
)
inlinestatic

◆ build_section_()

template<class SectionType >
static std::string mysql_harness::ConfigBuilder::build_section_ ( const std::string &  section,
const SectionType &  pairs 
)
inlinestaticprivate

The documentation for this class was generated from the following file: