-
Notifications
You must be signed in to change notification settings - Fork 607
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
15 changed files
with
133 additions
and
34 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
ydb/docs/en/core/concepts/datamodel/_includes/object-naming-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 [scheme object](../../../concepts/glossary.md#scheme-object) in {{ ydb-short-name }} 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). | ||
|
||
Scheme 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-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,21 @@ | ||
{% include [index.md](_includes/index.md) %} | ||
# Data model and schema | ||
|
||
This section describes the entities that {{ ydb-short-name }} uses within DBs. The {{ ydb-short-name }} core lets you flexibly implement various storage primitives, so new entities may appear in the future. | ||
|
||
{{ ydb-short-name }} is a relational database where the data is stored in [tables](table.md) with each table consisting of rows and columns. Database objects in {{ ydb-short-name }} can be organized into a hierarchy of [folders](dir.md). | ||
|
||
* [Folder](dir.md) | ||
* [Table](table.md) | ||
|
||
{% if feature_view %} | ||
* [View](view.md) | ||
{% endif %} | ||
|
||
* [Topic](../topic.md) | ||
* [Secret](secrets.md) | ||
* [External table](external_table.md) | ||
* [External data source](external_data_source.md) | ||
|
||
[Scheme objects](../../concepts/glossary.md#scheme-object) in {{ ydb-short-name }} all follow the same naming rules described in the section below. However, requirements for column names are slightly different. | ||
|
||
{% include [object naming rules](./_includes/object-naming-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
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 was deleted.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
ydb/docs/ru/core/concepts/datamodel/_includes/object-naming-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} | ||
|
||
У каждого [схемного объекта](../../../concepts/glossary.md#scheme-object) базы данных в {{ ydb-short-name }} есть имя. В YQL-выражениях имена схемных объектов указываются с помощью идентификаторов, заключённых в обратные кавычки (`` ` ``) или без этих символов. Для более подробной информации об идентификаторах, см. [{#T}](../../../yql/reference/syntax/lexer.md#keywords-and-ids). | ||
|
||
Имена схемных объектов в {{ ydb-short-name }} должны соответствовать следующим требованиям: | ||
|
||
- Имя объекта может состоять из следующих символов: | ||
- прописные латинские буквы; | ||
- строчные латинские буквы; | ||
- цифры; | ||
- специальные символы: `.`, `-` и `_`. | ||
- Длина имени объекта не должна превышать 255 символов. | ||
- Объекты не должны создаваться в папках, имена которых начинаются с точки, таких как `.sys`, `.medatata`, `.sys_health`. | ||
|
||
## Правила наименования колонок {#column-naming-rules} | ||
|
||
Имена колонок в {{ 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,21 @@ | ||
{% include [index.md](_includes/index.md) %} | ||
# Модель данных и схема | ||
|
||
В разделе собраны описания сущностей, которыми оперирует {{ ydb-short-name }} в рамках БД. Ядро {{ ydb-short-name }} позволяет гибко реализовывать различные примитивы хранения, поэтому возможно появление в будущем новых сущностей. | ||
|
||
{{ ydb-short-name }} – это реляционная база данных, в которой данные хранятся в таблицах, состоящих из рядов и колонок. Объекты баз данных {{ ydb-short-name }} могут быть организованы в иерархию директорий. | ||
|
||
* [Директории](dir.md) | ||
* [Таблицы](table.md) | ||
|
||
{% if feature_view %} | ||
* [Представления (VIEW)](view.md) | ||
{% endif %} | ||
|
||
* [Топики](../topic.md) | ||
* [Секреты](secrets.md) | ||
* [Подключения к внешним БД](external_data_source.md) | ||
* [Внешние источники данных](external_table.md) | ||
|
||
Все [схемные объекты](../../concepts/glossary.md#scheme-object) в {{ ydb-short-name }} имеют одинаковые требования к своим наименованиям. Но правила наименования колонок немного отличаются от правил для схемных объектов. | ||
|
||
{% include [object naming rules](./_includes/object-naming-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
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