動画検索
関連広告
検索結果
Introduction
Startup code and clone and checkout
Presenting the startup code, API and db models
How the API is tightly coupled to the data layer and why tight coupling is bad
How repository helps avoid tight coupling with the data layer and what are the benefits
How do you implement the repository pattern?
Implementing the bookings repository
Moving database logic from the API layer to the repository
Using the repository in the API layer
Setting up the environment, installing the dependencies
Running the database migrations
Running the server and testing the changes using the Swagger UI
Introducing the test suite and running it
Making SQLAlchemy's session maker an injectable dependency
Testing the changes
Updating the test suite to inject SQLAlchemy's session maker
Mocking SQLAlchemy's session maker
Adding a bookings business object
Returning business objects from the repository
Testing the changes
Injecting the repositories into the FastAPI app using a registry
Injecting a dummy repository in the test and running the test suite
Wrapping up (show images of the books here)
求める情報が見つからない場合は、キーワードや指定した条件を変えてみてください。