#include <uri.h>
|
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...
|
|
◆ 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:
- router/src/router/include/mysqlrouter/uri.h
- router/src/router/src/uri.cc