mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Merge pull request #65685 from Blargian/docs_protocol
[Docs] add missing function `protocol` to docs
This commit is contained in:
commit
c8a2490be7
@ -818,6 +818,40 @@ The same as above, but including query string and fragment.
|
|||||||
|
|
||||||
Example: `/top/news.html?page=2#comments`.
|
Example: `/top/news.html?page=2#comments`.
|
||||||
|
|
||||||
|
### protocol
|
||||||
|
|
||||||
|
Extracts the protocol from a URL.
|
||||||
|
|
||||||
|
**Syntax**
|
||||||
|
|
||||||
|
```sql
|
||||||
|
protocol(url)
|
||||||
|
```
|
||||||
|
|
||||||
|
**Arguments**
|
||||||
|
|
||||||
|
- `url` — URL to extract protocol from. [String](../data-types/string.md).
|
||||||
|
|
||||||
|
**Returned value**
|
||||||
|
|
||||||
|
- Protocol, or an empty string if it cannot be determined. [String](../data-types/string.md).
|
||||||
|
|
||||||
|
**Example**
|
||||||
|
|
||||||
|
Query:
|
||||||
|
|
||||||
|
```sql
|
||||||
|
SELECT protocol('https://clickhouse.com/');
|
||||||
|
```
|
||||||
|
|
||||||
|
Result:
|
||||||
|
|
||||||
|
```response
|
||||||
|
┌─protocol('https://clickhouse.com/')─┐
|
||||||
|
│ https │
|
||||||
|
└─────────────────────────────────────┘
|
||||||
|
```
|
||||||
|
|
||||||
### queryString
|
### queryString
|
||||||
|
|
||||||
Returns the query string without the initial question mark, `#` and everything after `#`.
|
Returns the query string without the initial question mark, `#` and everything after `#`.
|
||||||
|
@ -2262,6 +2262,7 @@ proleptic
|
|||||||
prometheus
|
prometheus
|
||||||
proportionsZTest
|
proportionsZTest
|
||||||
proto
|
proto
|
||||||
|
protocol
|
||||||
protobuf
|
protobuf
|
||||||
protobufsingle
|
protobufsingle
|
||||||
proxied
|
proxied
|
||||||
|
Loading…
Reference in New Issue
Block a user