rattail.db.changes

Data Changes Interface

rattail.db.changes.record_changes(session, ignore_role_changes=True)[source]

Record all changes which occur within a session.

Parameters:
  • session – A sqlalchemy.orm.session.Session class, or an instance thereof.
  • ignore_role_changes – Whether changes involving roles and role membership should be ignored. This defaults to True, which means each database will be responsible for maintaining its own role (and by extension, permissions) data.