-
Notifications
You must be signed in to change notification settings - Fork 606
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
101 additions
and
8 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
ydb/docs/en/core/concepts/datamodel/_includes/table-name-rules.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
## Database object naming rules {#object-naming-rules} | ||
|
||
Every database object in {{ ydb-short-name }}, such as a table, view, topic, index or directory, has a name. In YQL statements, object names are specified by identifiers that can be enclosed in backticks or not. For more information on identifiers, refer to [{#T}](../../../yql/reference/syntax/lexer.md#keywords-and-ids). | ||
|
||
Database object names in {{ ydb-short-name }} must meet the following requirements: | ||
|
||
- Object names can include the following characters: | ||
- uppercase latin characters | ||
- lowercase latin characters | ||
- digits | ||
- special characters: `.`, `-`, and `_`. | ||
- Object name length must not exceed 255 characters. | ||
- Objects cannot be created in folders, which names start with a dot, such as `.sys`, `.medatata`, `.sys_health`. | ||
|
||
## Column naming rules | ||
|
||
Column names in {{ ydb-short-name }} must meet the following requirements: | ||
|
||
- Column names can include the following characters: | ||
- uppercase latin characters | ||
- lowercase latin characters | ||
- digits | ||
- special characters: `-` and `_`. | ||
- Column names must not start with the system prefix `__ydb_`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
ydb/docs/ru/core/concepts/datamodel/_includes/table-name-rules.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
## Правила наименования объектов базы данных {#object-naming-rules} | ||
|
||
У каждого объекта базы данных в {{ ydb-short-name }} (такого как таблица, представление, топик, индекс или папка) есть имя. В YQL-выражениях имена объектов указываются с помощью идентификаторов, заключённых в обратные кавычки (`` ` ``) или без этих символов. Для более подробной информации об идентификаторах, см. [{#T}](../../../yql/reference/syntax/lexer.md#keywords-and-ids). | ||
|
||
Имена объектов в {{ ydb-short-name }} должны соответствовать следующим требованиям: | ||
|
||
- Имя объекта может состоять из следующих символов: | ||
- прописные латинские буквы; | ||
- строчные латинские буквы; | ||
- цифры; | ||
- специальные символы: `.`, `-` и `_`. | ||
- Длина имени объекта не должна превышать 255 символов. | ||
- Объекты не должны создаваться в папках, имена которых начинаются с точки, таких как `.sys`, `.medatata`, `.sys_health`. | ||
|
||
## Правила наименования колонок | ||
|
||
Имена колонок в {{ ydb-short-name }} должны соответствовать следующим требованиям: | ||
|
||
- Имя колонки может состоять из следующих символов: | ||
- прописные латинские буквы; | ||
- строчные латинские буквы; | ||
- цифры; | ||
- специальные символы: `-` и `_`. | ||
- Длина имени колонки не должна превышать 255 символов. | ||
- Имя колонки не должно начинаться с системного префикса `__ydb_`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters