Skip to content

Commit

Permalink
Edited chapter_06_uow.asciidoc with Atlas code editor
Browse files Browse the repository at this point in the history
  • Loading branch information
katherinetozer committed Mar 4, 2020
1 parent 230796b commit e682611
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions chapter_06_uow.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ git checkout chapter_04_service_layer
----
====

[role="width-90"]
[role="width-75"]
[[before_uow_diagram]]
.Without UoW: API talks directly to three layers
image::images/apwp_0601.png[]
Expand All @@ -40,11 +40,12 @@ to talk directly to the database.((("Unit of Work pattern", "managing database s

And we'll do it all using a lovely piece((("context manager"))) of Python syntax, a context manager.

[role="width-75"]
[[after_uow_diagram]]
.With UoW: UoW now manages database state
image::images/apwp_0602.png[]

[role="pagebreak-before less_space"]

=== The Unit of Work Collaborates with the Repository

//TODO (DS) do you talk anywhere about multiple repositories?
Expand Down

0 comments on commit e682611

Please sign in to comment.