ClickHouse/docs/ru/operations/system-tables/grants.md

24 lines
1.9 KiB
Markdown
Raw Normal View History

DOCSUP-1395: Add desc for system tables. (#13852) * Add desc for system tables. * Fixed links, add comments from the developer * Update docs/en/operations/system-tables/row_policies.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables/row_policies.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables/row_policies.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables/settings_profile_elements.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables/settings_profile_elements.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables/row_policies.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables/settings_profile_elements.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables/users.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Link to Enum. * Added translation to russian * Update row_policies.md * Add lost description * Update docs/ru/operations/system-tables/grants.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/ru/operations/system-tables/grants.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/ru/operations/system-tables/row_policies.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/ru/operations/system-tables/row_policies.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Additions * Fixed links Co-authored-by: Anna Devyatova <annadevyatova@yandex-team.ru> Co-authored-by: BayoNet <da-daos@yandex.ru>
2020-08-31 18:04:37 +00:00
# system.grants {#system_tables-grants}
Привилегии пользовательских аккаунтов ClickHouse.
Столбцы:
- `user_name` ([Nullable](../../sql-reference/data-types/nullable.md)([String](../../sql-reference/data-types/string.md))) — Название учётной записи.
- `role_name` ([Nullable](../../sql-reference/data-types/nullable.md)([String](../../sql-reference/data-types/string.md))) — Роль, назначенная учетной записи пользователя.
- `access_type` ([Enum8](../../sql-reference/data-types/enum.md)) — Параметры доступа для учетной записи пользователя ClickHouse.
- `database` ([Nullable](../../sql-reference/data-types/nullable.md)([String](../../sql-reference/data-types/string.md))) — Имя базы данных.
- `table` ([Nullable](../../sql-reference/data-types/nullable.md)([String](../../sql-reference/data-types/string.md))) — Имя таблицы.
- `column` ([Nullable](../../sql-reference/data-types/nullable.md)([String](../../sql-reference/data-types/string.md))) — Имя столбца, к которому предоставляется доступ.
- `is_partial_revoke` ([UInt8](../../sql-reference/data-types/int-uint.md#uint-ranges)) — Логическое значение. Показывает, были ли отменены некоторые привилегии. Возможные значения:
- `0` — Строка описывает частичный отзыв.
- `1` — Строка описывает грант.
- `grant_option` ([UInt8](../../sql-reference/data-types/int-uint.md#uint-ranges)) — Разрешение предоставлено с опцией `WITH GRANT OPTION`, подробнее см. [GRANT](../../sql-reference/statements/grant.md#grant-privigele-syntax).