4
我開始使用SQLAlchemy一個新的項目,我正打算實施類似提出這個quiestions的一個審計線索:允許用戶從數據庫審計跟蹤回滾與SQLAlchemy的
- Implementing Audit Trail for Objects in C#?
- Audit trails and implementing SOX/HIPAA/etc, best practices for sensitive data
- Ideas on database design for capturing audit trails
- What is the best implementation for DB Audit Trail?
- Is this the best approach to creating an audit trail?
- Good strategy for leaving an audit trail/change history for DB applications?
- Data Auditing in NHibernate and SqlServer。
- Ideas on database design for capturing audit trails
正如我已經有「有趣」的對象的完整歷史,我想在允許用戶回滾到一個給定的版本,讓他們擁有無限undo
的可能性。
用SQLAlchemy以乾淨的方式可以做到這一點嗎?
什麼是正確方式在內部API(業務邏輯和ORM)公開此功能?
我是沿着user.rollback(ver=42)
的方式。
的允許分支是很酷,但它不會是真的真的很難做到向下合併馬路? – voyager 2009-09-23 20:23:09
這不像源代碼控制。從用戶的角度來看,您完全刪除了C,您將永遠不需要將其合併到其中。它仍然存在的唯一原因是作爲審計線索,或者出於某種原因需要手動刪除已刪除的項目。 – 2009-09-29 20:12:17