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
# Создание обычного индекса
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
✓ 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
✓ 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
Indexes on collection 'employees':
- _id_
- name_idx
- email_idx
- dept_age_idx
- _id_ (created: 2026-01-15 10:32:15.234)
- name_idx (created: 2026-01-15 10:50:15.123)
- email_idx (unique) (created: 2026-01-15 10:50:18.456)
- dept_age_idx (created: 2026-01-15 10:50:21.789)
# Удаление индекса
# Удаление индекса (с временем удаления)
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>