django-query-contract¶
A query-capture engine for Django, and a pytest plugin over it.
See the README for the
overview, N+1 detection for the detector and how a finding is
defined, growth assertions for asserting a count is O(1) rather
than O(N), call-site attribution for asking any statement
where it came from, plan capture for what PostgreSQL did with a
statement and what it got wrong about it, and the
API reference for the capture record.