MySQL 8.4.2
Source Code Documentation
mysqlrouter::URIParser Class Reference

#include <uri.h>

Static Public Member Functions

static std::string decode (const std::string &uri, bool decode_plus)
 
static URI parse (const std::string &uri, bool allow_path_rootless=true, bool allow_schemeless=false, bool path_keep_last_slash=false, bool query_single_parameter_when_cant_parse=false)
 
static URI parse_shorthand_uri (const std::string &uri, bool allow_path_rootless=true, const std::string &default_scheme="mysql")
 if uri ~= host:port, URI(scheme="mysql", host=host, port=port) [no-pct-enc] elif uri ~= ^/, URI(schema="mysql", query={"socket": uri }) [no-pct-enc] elif uri ~= ^\, URI(schema="mysql", query={"socket": uri }) [no-pct-enc] else URI(uri) [pct-enc] More...
 

Member Function Documentation

◆ decode()

std::string mysqlrouter::URIParser::decode ( const std::string &  uri,
bool  decode_plus 
)
static

◆ parse()

URI mysqlrouter::URIParser::parse ( const std::string &  uri,
bool  allow_path_rootless = true,
bool  allow_schemeless = false,
bool  path_keep_last_slash = false,
bool  query_single_parameter_when_cant_parse = false 
)
static

◆ parse_shorthand_uri()

URI mysqlrouter::URIParser::parse_shorthand_uri ( const std::string &  uri,
bool  allow_path_rootless = true,
const std::string &  default_scheme = "mysql" 
)
static

if uri ~= host:port, URI(scheme="mysql", host=host, port=port) [no-pct-enc] elif uri ~= ^/, URI(schema="mysql", query={"socket": uri }) [no-pct-enc] elif uri ~= ^\, URI(schema="mysql", query={"socket": uri }) [no-pct-enc] else URI(uri) [pct-enc]


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