mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-19 16:20:50 +00:00
updated docs
This commit is contained in:
parent
283b598000
commit
9ac7e41e07
12
docs/en/sql-reference/data-types/domains/base58.md
Normal file
12
docs/en/sql-reference/data-types/domains/base58.md
Normal file
@ -0,0 +1,12 @@
|
||||
---
|
||||
sidebar_position: 61
|
||||
sidebar_label: Base58
|
||||
---
|
||||
|
||||
## Base58
|
||||
|
||||
`Base58` is a domain based on `String` type created for storing Base58-encoded strings values.
|
||||
|
||||
Usage is the same as for general `String` type. THe only difference is that string of `Base58` type must be a correct Base58-encoded string.
|
||||
|
||||
[Original article](https://clickhouse.com/docs/en/data_types/domains/base58) <!--hide-->
|
@ -501,8 +501,8 @@ Accepts a String and encodes/decodes it using [Base58](https://tools.ietf.org/id
|
||||
**Syntax**
|
||||
|
||||
```sql
|
||||
encodeBase58(decoded)
|
||||
decodeBase58(encoded)
|
||||
base58Encode(decoded)
|
||||
base58Decode(encoded)
|
||||
```
|
||||
|
||||
**Arguments**
|
||||
@ -521,17 +521,17 @@ Type: [String](../../sql-reference/data-types/string.md).
|
||||
Query:
|
||||
|
||||
``` sql
|
||||
SELECT encodeBase58('encode');
|
||||
SELECT decodeBase58('izCFiDUY');
|
||||
SELECT base58Encode('Encoded');
|
||||
SELECT base58Encode('3dc8KtHrwM');
|
||||
```
|
||||
|
||||
Result:
|
||||
```text
|
||||
┌─encodeBase58('encode', 'flickr')─┐
|
||||
│ SvyTHb1D │
|
||||
┌─encodeBase58('Encoded')─┐
|
||||
│ 3dc8KtHrwM │
|
||||
└──────────────────────────────────┘
|
||||
┌─decodeBase58('izCFiDUY', 'ripple')─┐
|
||||
│ decode │
|
||||
┌─decodeBase58('3dc8KtHrwM')─┐
|
||||
│ Encoded │
|
||||
└────────────────────────────────────┘
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user