MySQL 8.0.39
Source Code Documentation
mysqlrouter::URIParser Class Reference

#include <uri.h>

Static Public Member Functions

static URI parse (const std::string &uri, bool allow_path_rootless=true)
 
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

◆ parse()

URI mysqlrouter::URIParser::parse ( const std::string &  uri,
bool  allow_path_rootless = true 
)
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: