Skip to content

feat: add persistence docs#59

Open
TGontar wants to merge 1 commit intomasterfrom
feat/docs
Open

feat: add persistence docs#59
TGontar wants to merge 1 commit intomasterfrom
feat/docs

Conversation

@TGontar
Copy link

@TGontar TGontar commented Mar 7, 2026

No description provided.


Миграции запускаются автоматически при старте приложения. Сборка с миграциями указывается при регистрации в DI, методе `WithMigrationsFrom`.

// TODO: возможно что-то написать про WithMigrationsFromItems
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Я не до конца понял механику этой фичи


## Подключение к БД и выполнение запросов

### Получение соединения
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Как коннекшн нормально по русски перевести

Метод возвращает `IPersistenceTransaction` - объект транзакции, который после выполнения операций необходимо закоммитить
(вызвать метод `CommitAsync`). Все операции, выполненные до вызова этого метода, автоматически попадают в транзакцию.

Если `CommitAsync` не был вызван, транзакция откатывается при `DisposeAsync`.
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

интересно что есть метод RollbackAsync но он ничего не делает

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant