Federal Farmer

Rogue programmer. Yeoman homesteader. I hate the antichrist.

Articles tagged with database

  • Tutorial: Using Flask-SQLAlchemy Outside A Flask App

    Developers using the Flask microframework will often lean on the popular Flask-SQLAlchemy ORM when working with databases.

    Datastonks

    Flask-SQLAlchemy is a great alternative API to the original SQLAlchemy, as it handles a lot of potential nastiness that can arise when managing database sessions with multiple concurrent connections as is common in web apps.

    Since Flask-SQLAlchemy ties every database session or connection with the request/response cycle directly, it makes it really hard to accidentally leave sessions active in the same worker thread to throw unexpected errors. This makes Flask-SQLAlchemy ideal for working with a database-driven web app.

    There's a catch, however …

Social Links

My Projects