Update README.md

This commit is contained in:
2026-05-24 22:04:27 +00:00
parent e59767511e
commit df5a87bc5f

View File

@@ -492,28 +492,32 @@ Futriix поддерживает первичные (по _id) и вторичн
```sh ```sh
# Создание обычного индекса # Создание обычного индекса
futriix:~> create index employees name_idx name futriix:~> create index employees name_idx name
✓ Index 'name_idx' created on collection 'employees' ✓ Index 'name_idx' created on collection 'employees' at 2026-01-15 10:50:15.123
# Создание уникального индекса # Создание уникального индекса
futriix:~> create index employees email_idx email unique futriix:~> create index employees email_idx email unique
✓ Index 'email_idx' created on collection 'employees' ✓ Index 'email_idx' created on collection 'employees' at 2026-01-15 10:50:18.456
# Создание составного индекса # Создание составного индекса
futriix:~> create index employees dept_age_idx department,age futriix:~> create index employees dept_age_idx department,age
✓ Index 'dept_age_idx' created on collection 'employees' ✓ Index 'dept_age_idx' created on collection 'employees' at 2026-01-15 10:50:21.789
# Просмотр всех индексов # Просмотр всех индексов (с временем создания)
futriix:~> show indexes employees futriix:~> show indexes employees
Indexes on collection 'employees': Indexes on collection 'employees':
- _id_ - _id_ (created: 2026-01-15 10:32:15.234)
- name_idx - name_idx (created: 2026-01-15 10:50:15.123)
- email_idx - email_idx (unique) (created: 2026-01-15 10:50:18.456)
- dept_age_idx - dept_age_idx (created: 2026-01-15 10:50:21.789)
# Удаление индекса # Удаление индекса (с временем удаления)
futriix:~> drop index employees dept_age_idx futriix:~> drop index employees dept_age_idx
✓ Index 'dept_age_idx' dropped from collection 'employees' ✓ Index 'dept_age_idx' dropped from collection 'employees' at 2026-01-15 10:51:05.234
# Начало сессии (с временем создания сессии)
futriix:~> db.startSession()
✓ Session started: session_12345 at 2026-01-15 10:55:15.123
``` ```
<p align="right">(<a href="#readme-top">К началу</a>)</p> <p align="right">(<a href="#readme-top">К началу</a>)</p>