updated docs

This commit is contained in:
zvonand 2022-07-16 19:45:33 +02:00
parent 283b598000
commit 9ac7e41e07
2 changed files with 20 additions and 8 deletions

View 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-->

View File

@ -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
└────────────────────────────────────┘
```