mirror of
https://github.com/rommapp/romm.git
synced 2026-02-18 23:42:07 +01:00
As recommended by SQLAlchemy [1], this change makes a single instantiation of the database engine and session maker, instead of one entity per handler. It also uses the provided `URL` constructor to better define the database URL structure. [1] https://docs.sqlalchemy.org/en/20/core/connections.html#basic-usage