2016-12-09 17:38:15 +00:00
|
|
|
SELECT protocol('http://example.com') AS Scheme;
|
|
|
|
SELECT protocol('https://example.com/') AS Scheme;
|
|
|
|
SELECT protocol('svn+ssh://example.com?q=hello%20world') AS Scheme;
|
|
|
|
SELECT protocol('ftp!://example.com/') AS Scheme;
|
2016-12-09 22:49:21 +00:00
|
|
|
SELECT protocol('http://127.0.0.1:443/') AS Scheme;
|
2016-12-09 19:31:16 +00:00
|
|
|
|
|
|
|
SELECT domain('http://paul@www.example.com:80/') AS Host;
|
|
|
|
SELECT domain('http:/paul/example/com') AS Host;
|
|
|
|
SELECT domain('http://www.example.com?q=4') AS Host;
|
2016-12-09 22:49:21 +00:00
|
|
|
SELECT domain('http://127.0.0.1:443/') AS Host;
|
2016-12-09 19:31:16 +00:00
|
|
|
SELECT domainWithoutWWW('http://paul@www.example.com:80/') AS Host;
|
2016-12-09 22:49:21 +00:00
|
|
|
|
|
|
|
SELECT topLevelDomain('http://paul@www.example.com:80/') AS Domain;
|
|
|
|
SELECT topLevelDomain('http://127.0.0.1:443/') AS Domain;
|
|
|
|
SELECT topLevelDomain('svn+ssh://example.ru?q=hello%20world') AS Domain;
|
|
|
|
SELECT topLevelDomain('svn+ssh://example.ru.?q=hello%20world') AS Domain;
|
2016-12-10 21:04:58 +00:00
|
|
|
|
2016-12-15 17:12:41 +00:00
|
|
|
SELECT decodeURLComponent('%D0%9F');
|
|
|
|
SELECT decodeURLComponent('%D%9');
|
2016-12-12 06:09:00 +00:00
|
|
|
SELECT decodeURLComponent(pathFull('http://127.0.0.1/?query=hello%20world+foo%2Bbar')) AS Path;
|
2016-12-15 17:12:41 +00:00
|
|
|
SELECT decodeURLComponent(materialize(pathFull('http://127.0.0.1/?query=hello%20world+foo%2Bbar'))) AS Path;
|