A practical implementation of Domain Relational Calculus (DRC) using Python, Django, and SQL. Translates declarative DRC queries into executable SQL.
Annotates the stacktrace into the SQL query as a comment at runtime. Helpful for tracking down where queries are ran from within code, for example for analysing query counts in unit tests when trying ...