• Kevin Morris's avatar
    housekeep(fastapi): rework aurweb.db session API · 4103ab49
    Kevin Morris authored
    - Add aurweb.db.get_session()
        - Returns aurweb.db's global `session` instance
        - Provides us a way to change the implementation of the session
          instance without interrupting user code.
    - Use aurweb.db.get_session() in session API methods
    - Add docstrings to session API methods
    - Refactor aurweb.db.delete
        - Normalize aurweb.db.delete to an alias of session.delete
    - Refresh instances in places we depend on their non-PK columns
      being up to date.
    Signed-off-by: Kevin Morris's avatarKevin Morris <kevr@0cost.org>