Add desc for currentProfiles, enabledProfiles, defaultProfiles func

This commit is contained in:
adevyatova 2021-08-04 11:26:24 +00:00
parent bb8c6813a1
commit 5c39ae981c
3 changed files with 14 additions and 22 deletions

View File

@ -1,8 +1,3 @@
---
toc_priority: 40
toc_title: Replicated
---
# [experimental] Replicated {#replicated}
The engine is based on the [Atomic](../../engines/database-engines/atomic.md) engine. It supports replication of metadata via DDL log being written to ZooKeeper and executed on all of the replicas for a given database.

View File

@ -2140,48 +2140,50 @@ Result:
## currentProfiles {#current-profiles}
Short description.
Returns list of the current [setting profiles](../../operations/access-rights/#settings-profiles-management) for current user. The command [SET PROFILE](../../sql-reference/statements/set.md#set-statement#query-set) could be used to change the current setting profile.
**Syntax**
``` sql
<function syntax>
currentProfiles()
```
**Returned value**
- Returned values list.
- List of the current setting profiles.
Type: [Type name](relative/path/to/type/dscr.md#type).
Type: [Array](../../sql-reference/data-types/array.md)([String](../../sql-reference/data-types/string.md)).
## enabledProfiles {#enabled-profiles}
Short description.
Returns setting profiles are assigned to the user both explicitly and implicitly. Implicitly assigned profiles include parent profiles of other assigned profiles, profiles assigned via granted roles, profiles assigned via their own settings, and the main default profile (see the section `default_profile` in the main configuration file).
If some profile occurs multiple times (with some other settings in between), the latest occurrence overrides all the previous ones.
**Syntax**
``` sql
<function syntax>
enabledProfiles()
```
**Returned value**
- Returned values list.
- List of the enabled setting profiles.
Type: [Type name](relative/path/to/type/dscr.md#type).
Type: [Array](../../sql-reference/data-types/array.md)([String](../../sql-reference/data-types/string.md)).
## defaultProfiles {#default-profiles}
Short description.
Returns the default setting profiles, i.e. the settings which should be applied on the user's login.
**Syntax**
``` sql
<function syntax>
defaultProfiles()
```
**Returned value**
- Returned values list.
- List of the default setting profiles.
Type: [Type name](relative/path/to/type/dscr.md#type).
Type: [Array](../../sql-reference/data-types/array.md)([String](../../sql-reference/data-types/string.md)).

View File

@ -1,8 +1,3 @@
---
toc_priority: 40
toc_title: Replicated
---
# [экспериментальный] Replicated {#replicated}
Движок основан на движке [Atomic](../../engines/database-engines/atomic.md). Он поддерживает репликацию метаданных через журнал DDL, записываемый в ZooKeeper и выполняемый на всех репликах для данной базы данных.