MySQL 9.1.0
Source Code Documentation
cluster_metadata.h File Reference
#include "mysqlrouter/metadata_cache_export.h"
#include "mysqlrouter/cluster_metadata.h"
#include "mysqlrouter/metadata.h"
#include "mysqlrouter/metadata_cache.h"
#include "mysqlrouter/mysql_session.h"
#include "router_options.h"
#include "tcp_address.h"
#include <chrono>
#include <memory>
#include <optional>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

class  ClusterMetadata
 The ClusterMetadata class encapsulates a connection to the Metadata server. More...
 

Namespaces

namespace  mysqlrouter
 
namespace  xcl
 

Typedefs

using ConnectCallback = std::function< bool(mysqlrouter::MySQLSession &connection, const metadata_cache::ManagedInstance &mi)>
 

Functions

std::string as_string (const char *input_str)
 Return a string representation of the input character string. More...
 
bool set_instance_ports (metadata_cache::ManagedInstance &instance, const mysqlrouter::MySQLSession::Row &row, const size_t classic_port_column, const size_t x_port_column)
 
void set_instance_attributes (metadata_cache::ManagedInstance &instance, const std::string &attributes)
 

Typedef Documentation

◆ ConnectCallback

using ConnectCallback = std::function<bool(mysqlrouter::MySQLSession &connection, const metadata_cache::ManagedInstance &mi)>

Function Documentation

◆ as_string()

std::string as_string ( const char *  input_str)

Return a string representation of the input character string.

Parameters
input_strA character string.
Returns
A string object encapsulation of the input character string. An empty string if input string is nullptr.

◆ set_instance_attributes()

void set_instance_attributes ( metadata_cache::ManagedInstance instance,
const std::string &  attributes 
)

◆ set_instance_ports()

bool set_instance_ports ( metadata_cache::ManagedInstance instance,
const mysqlrouter::MySQLSession::Row row,
const size_t  classic_port_column,
const size_t  x_port_column 
)