Project

General

Profile

Actions

Task #6205

closed

Review encapsulation of SQLAlchemy and Psycopg2 DBALs

Added by Jan Mach almost 5 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Category:
Development - Core
Target version:
Start date:
01/24/2020
Due date:
% Done:

100%

Estimated time:
To be discussed:

Description

Working on issue #4251 revealed, that the SQLAlchemy and/or Psycopg2 DBALs may not be optimally used within the project. For example cursors or sessions my be abused in a way that goes against best practices, which can cause troubles like those in #4251, because sessions/transaction can get stuck.

It would be wise to review current implementation.


Files

test_flask_sqlalchemy.py (1.33 KB) test_flask_sqlalchemy.py Radko Krkoš, 01/04/2021 12:43 PM

Related issues

Related to Mentat - Bug #4251: User data access through SQLAlchemy keeps a transaction openClosedJan Mach08/09/2018

Actions
Related to Mentat - Task #7619: Flask Deprecation warningsIn ReviewRajmund Hruška12/14/2022

Actions
Related to Mentat - Support #7642: Upgrade Flask-SQLAlchemyClosedJakub Judiny04/13/2023

Actions
Actions

Also available in: Atom PDF