imsweb / django-history-triggers

Django management command and middleware for creating and maintaining PostgreSQL audit trail triggers.
BSD 2-Clause "Simplified" License
3 stars 7 forks source link

Support for mssql (Microsoft SQL Server) #6

Open spabinger opened 2 years ago

spabinger commented 2 years ago

Hello,

I stumbled across this great project and was planning to use it in my project. However, it currently does not support mssql database and therefore is not usable for me.

Are you planning to implement mssql support? Do you know of another package I could use to store database change history using triggers?

Many thanks in advance, Stephan

dcwatson commented 2 years ago

I haven't used MSSQL, and have no plans to implement support for it. That said, history.get_backend accepts a cls parameter if you want to implement your own backend. It seems like MSSQL has session variables, so it could probably be implemented somewhat similarly to the postgres backend. I would also accept PRs to make supporting third-party backends better (i.e. being able to register a default backend for a Django database, for example).