Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Tishka17/python-uow-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

3 Commits

Repository files navigation

Unit of work example in Python

This is an example implementation of "Unit of Work" pattern.

It doesn't show optimal way to do it and has known limitations. It should be considered only as an educational material, not a ready-to-production code.

In this example you can see:

  • Unit of Work itself, which has own copy of mappers registry and affected models.
  • A data mapper fake implementation to show when it is called
  • A dataclass used as an anemic domain model
  • A model wrapper so to keep business model clean. This can break the code which uses reflection.
  • An example of some business logic (interactor) and a database gateway for it.

About

Unit of work pattern example in python

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /