This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def isolation_level(level): | |
"""Return a Flask view decorator to set SQLAlchemy isolation level | |
Usage:: | |
@main.route("/thingy/<id>", methods=["POST"]) | |
@isolation_level("SERIALIZABLE") | |
def update_a_thing(id): | |
... | |
""" | |
def decorator(view): |