Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: Add information about 'WITH' in CREATE GROUP #13717

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 24 additions & 3 deletions ydb/docs/en/core/yql/reference/yql-core/syntax/create-group.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,32 @@
# CREATE GROUP

Creates a group with the specified name.
Creates a [group](../../../concepts/glossary.md#access-group) with the specified name. Optionally, you can specify a list of [users](../../../concepts/glossary.md#access-user) to add to the group.

Syntax:
## Syntax

```yql
CREATE GROUP group_name
CREATE GROUP group_name [ WITH user_name [ , user_name [ ... ]] [ , ] ]
```

### Parameters

* `group_name`: The name of the group. It may contain lowercase Latin letters and digits.
* `user_name`: The name of the user who will become a member of the group after its creation. It may contain lowercase Latin letters and digits.

## Examples

```yql
CREATE GROUP group1;
```

```yql
CREATE GROUP group2 WITH USER user1;
```

```yql
CREATE GROUP group3 WITH USER user1, user2,;
flown4qqqq marked this conversation as resolved.
Show resolved Hide resolved
```

```yql
CREATE GROUP group4 WITH USER user1, user3, user2;
```
27 changes: 24 additions & 3 deletions ydb/docs/ru/core/yql/reference/yql-core/syntax/create-group.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,32 @@
# CREATE GROUP

Создает группу с указанным именем.
Создает [группу](../../../concepts/glossary.md#access-group) с указанным именем. Есть возможность указать список [пользователей](../../../concepts/glossary.md#access-user), входящих в эту группу.

Синтаксис:
## Синтаксис

```yql
CREATE GROUP group_name
CREATE GROUP group_name [ WITH user_name [ , user_name [ ... ]] [ , ] ]
```

### Параметры

* `group_name` — имя группы. Может содержать строчные буквы латинского алфавита и цифры.
* `user_name` — имя пользователя, который станет участником группы после её создания. Может содержать строчные буквы латинского алфавита и цифры.

## Примеры

```yql
CREATE GROUP group1;
```

```yql
CREATE GROUP group2 WITH USER user1;
```

```yql
CREATE GROUP group3 WITH USER user1, user2,;
flown4qqqq marked this conversation as resolved.
Show resolved Hide resolved
```

```yql
CREATE GROUP group4 WITH USER user1, user3, user2;
```
Loading