Update README.md
This commit is contained in:
39
README.md
39
README.md
@@ -551,34 +551,49 @@ futriix:~> db.startSession()
|
|||||||
|
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
# Начало сессии
|
# Начало сессии (с временем создания сессии)
|
||||||
futriix:~> db.startSession()
|
futriix:~> db.startSession()
|
||||||
✓ Session started: session_12345
|
✓ Session started: session_12345 at 2026-01-15 10:55:15.123
|
||||||
|
|
||||||
# Начало транзакции в рамках сессии
|
# Начало транзакции в рамках сессии
|
||||||
futriix:~> session.startTransaction()
|
futriix:~> session.startTransaction()
|
||||||
✓ Transaction started: TX_67890
|
✓ Transaction started: TX_67890 at 2026-01-15 10:55:18.456
|
||||||
|
|
||||||
# Выполнение операций в транзакции
|
# Выполнение операций в транзакции (с временем выполнения)
|
||||||
futriix:~> insert employees name=New User,position=Trainee,age=22
|
futriix:~> insert employees name=New User,position=Trainee,age=22
|
||||||
✓ Document inserted with ID: 550e8400-e29b-41d4-a716-446655440005
|
✓ Document inserted with ID: 550e8400-e29b-41d4-a716-446655440005 (created at: 2026-01-15 10:55:21.789)
|
||||||
|
|
||||||
futriix:~> update employees 550e8400-e29b-41d4-a716-446655440005 status=active
|
futriix:~> update employees 550e8400-e29b-41d4-a716-446655440005 status=active
|
||||||
✓ Document '550e8400-e29b-41d4-a716-446655440005' updated
|
✓ Document '550e8400-e29b-41d4-a716-446655440005' updated at 2026-01-15 10:55:24.012
|
||||||
|
|
||||||
# Подтверждение транзакции
|
# Подтверждение транзакции (с временем коммита)
|
||||||
futriix:~> session.commitTransaction()
|
futriix:~> session.commitTransaction()
|
||||||
✓ Transaction committed successfully
|
✓ Transaction committed successfully at 2026-01-15 10:55:27.345
|
||||||
|
|
||||||
# Откат транзакции (при ошибке)
|
# Откат транзакции (при ошибке) (с временем отката)
|
||||||
futriix:~> session.startTransaction()
|
futriix:~> session.startTransaction()
|
||||||
✓ Transaction started: TX_67891
|
✓ Transaction started: TX_67891 at 2026-01-15 10:56:10.123
|
||||||
|
|
||||||
futriix:~> insert employees name=Test User,position=Test,age=25
|
futriix:~> insert employees name=Test User,position=Test,age=25
|
||||||
✓ Document inserted with ID: 550e8400-e29b-41d4-a716-446655440006
|
✓ Document inserted with ID: 550e8400-e29b-41d4-a716-446655440006 (created at: 2026-01-15 10:56:13.456)
|
||||||
|
|
||||||
futriix:~> session.abortTransaction()
|
futriix:~> session.abortTransaction()
|
||||||
✓ Transaction aborted, changes rolled back
|
✓ Transaction aborted, changes rolled back at 2026-01-15 10:56:16.789
|
||||||
|
|
||||||
|
# Просмотр активных транзакций (с временем начала)
|
||||||
|
futriix:~> show transactions
|
||||||
|
=== Active Transactions ===
|
||||||
|
ID: TX_67892, Status: active, Operations: 2, Started: 2026-01-15 10:57:00.123
|
||||||
|
- INSERT: company.employees [user-uuid-001]
|
||||||
|
- UPDATE: company.employees [user-uuid-002]
|
||||||
|
ID: TX_67893, Status: active, Operations: 1, Started: 2026-01-15 10:57:05.456
|
||||||
|
- DELETE: company.employees [user-uuid-003]
|
||||||
|
|
||||||
|
# Просмотр сессий (с временем создания)
|
||||||
|
futriix:~> show sessions
|
||||||
|
=== Active Sessions ===
|
||||||
|
session_12345 - Created: 2026-01-15 10:55:15.123, Last active: 2026-01-15 10:57:30.456
|
||||||
|
session_12346 - Created: 2026-01-15 10:56:20.789, Last active: 2026-01-15 10:57:15.234
|
||||||
```
|
```
|
||||||
|
|
||||||
<p align="right">(<a href="#readme-top">К началу</a>)</p>
|
<p align="right">(<a href="#readme-top">К началу</a>)</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user