Data interaction is currently handled through a specific file, data.py, to create a level of separation from the Database class, but this still requires anything that calls these functions be inside a session context.
This is useful for speeding up runtime, as multiple operations can utilise a single session context, however this does mean that this logic isn't centrallised.
In particular, in the admin page.
Data interaction is currently handled through a specific file,
data.py
, to create a level of separation from theDatabase
class, but this still requires anything that calls these functions be inside asession
context.This is useful for speeding up runtime, as multiple operations can utilise a single session context, however this does mean that this logic isn't centrallised.