This is a boilerplate app that was created as an example in a few blog posts:
- SQLAlchemy and Race Conditions: Implementing
get_one_or_create()
- Adding Unique Constraints After the Fact in SQLAlchemy
- SQLAlchemy and Race Conditions: Follow Up on Commits and Flushes
The code is provided mainly for reference and free to use under the MIT License.