docs: add MkDocs documentation with Material theme and GitHub Pages deploy
Some checks failed
docs / deploy (push) Has been cancelled

This commit is contained in:
2026-08-17 14:22:34 +03:00
parent 1608b00708
commit 8787342476
18 changed files with 1277 additions and 16 deletions

View File

@@ -35,6 +35,14 @@ class RepositoriesContainer:
def session(self) -> AsyncSession | None:
return self._session_context.get(None)
async def create_tables(self, *repository_classes: type[RepositoryType]) -> None:
repositories = [
await self.get_repository(repository_class=repository_class)
for repository_class in repository_classes
]
for repository in repositories:
await repository.create_tables()
@asynccontextmanager
async def transaction(self) -> AsyncGenerator[AsyncSession, None]:
existing_session = self._session_context.get(None)