aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/panels/sql.py
AgeCommit message (Collapse)Author
2011-07-12Merge pull request #175 from thinred/masterDavid Cramer
This adds a feature asked in issue #163
2011-06-16Fixing UnicodeEncodeError in sql panelMiguel Araujo Perez
2011-06-10Issue #163: SQL expand does show query fields now. So does clicking on bullets.Tomasz Buchert
2011-06-09Timeline width in SQL panel properly scaled.Tomasz Buchert
2011-05-16Remove trailing quotation in SQL stacktrace displayDavid Cramer
2011-04-13Fix a bug with marking the last query in a transaction as the end of chainDavid Cramer
2011-04-06Only mark starting a new transaction if new trans_id is setDavid Cramer
2011-04-06unset transaction id if we're not in a transactionDavid Cramer
2011-04-06Mark the correct query as ending the transactionDavid Cramer
2011-04-06Transaction id tracing is not specific to psycopg2David Cramer
2011-04-06Generate fake transaction ids so we can match up transaction end state correctlyDavid Cramer
2011-04-06SQL panel now guesses at Psycopg2 transactions (when autocommit swaps to in ↵David Cramer
trans and vice versa)
2011-04-05Add support for engine-per-query as well as pulling out psycopg2's isolation ↵David Cramer
level and transaction status
2011-03-31Add utilities to inject and monitor functions. Change DB tracking to use new ↵David Cramer
injection method on BaseDatabaseWrapper.cursor
2011-03-30Some initial tests and fix for execution modelDavid Cramer
2011-03-30Inject our SQL tracker on BaseDatabaseWrapper.cursor rather than discovering ↵David Cramer
different CursorWrapper's
2011-03-30Ensure we wrap all cursorsDavid Cramer
2011-03-28Store actual function as __wrapped__ instead of __wraps for Python 3.2 ↵David Cramer
compatibility
2011-03-28Fail gracefully when theres no queries on a pageDavid Cramer
2011-03-28SQL injection now happens without interfering with the underlying db.queries ↵David Cramer
objects (and no longer requires DEBUG to be set)
2011-03-24Remove debug printDavid Cramer
2011-03-24Fix for infinite math fail :)David Cramer
2011-03-24Much better coloring scaleDavid Cramer
2011-03-24basic color code grouping of db aliasesDavid Cramer
2011-03-24Only show connections which executed queries. Show number of used ↵David Cramer
connections in title
2011-03-24Add multi db support and summaries to SQL panelDavid Cramer
2011-03-23Overhaul SQL panel to include better timeline, more compact queries, and ↵David Cramer
better view of stacktrace
2010-01-22Escape invalid html in SQL queries.Gabriel
For example, a query containing a stray ampersand needs to be escaped. Signed-off-by: Rob Hudson <rob@cogit8.org>
2010-01-14Template panel context cleanup.Chris Adams
All panels get a copy of the template context when created and use an updated copy when rendering so they can have full access to context vars and avoid making changes to the shared context. Signed-off-by: Rob Hudson <rob@cogit8.org>
2010-01-09Fix issue #33: ensure force_unicode doesn't convert non-strings.Daniel Roseman
2009-11-18Marked more strings for translation and updated 'fr' locale.David Jean Louis
Signed-off-by: Rob Hudson <rob@cogit8.org>
2009-11-06Fixed incompatability with Python 2.4.Rob Hudson
2009-11-02Show context where SQL query originated from templateChris Lamb
Signed-off-by: Chris Lamb <lamby@debian.org> Signed-off-by: Rob Hudson <rob@cogit8.org>
2009-09-22Added sqlparse, replacing my simple string replace SQL keywords and updatingRob Hudson
management command and SQL panel.
2009-09-12Merge remote branch 'alex/master'Rob Hudson
2009-09-12Fixed to only show the link for requesting the SELECT data if the query is aRob Hudson
SELECT query.
2009-09-11Added more SQL keywords.Rob Hudson
2009-09-10handle merge conflictsAlex Gaynor
2009-09-08Fixed an issue where the panel navigation might have a different number ofRob Hudson
queries than the panel pane if SQL queries happened in between calls. This caches the queries off in an array to be used in both places. If the possibility of queries happening elsewhere occurs, the SQL panel should probably be moved lower in the execution stack.
2009-08-28Refactored `reformat_sql` to produce a more compact output for a tighter ↵Rob Hudson
view of the SQL.
2009-08-28Refactored SQL panel to use datetime objects and added a visual display of ↵Rob Hudson
both duration and sequence to the SQL template.
2009-08-12added in-panel titleIdan Gazit
2009-08-12renamed title/subtitle -> nav_title/nav_subtitleIdan Gazit
2009-08-11Refactored the UI to be a right hand side vertical toolbar. DebugPanel ↵Rob Hudson
subclass grew a subtitle method to display informative text under the title.
2009-06-16provide an option to see stuff indjango in the sql stack traceAlex Gaynor
2009-05-27Adding a signals panel to display list of signals and their providing argumentsAlex Gaynor
and receivers. Thanks Alex Gaynor! Signed-off-by: Rob Hudson <rob@cogit8.org>
2009-03-21Merge commit 'rob/master'Alex Gaynor
2009-03-21Adding stack traces to SQL panel to see where the calls are coming from.Rob Hudson
Merge branch 'sql_stacktrace' * sql_stacktrace: Tuple unpacking of stacktrace variables for niceness. Add preliminary support for stacktraces to see where SQL queries are coming from.
2009-03-21resoled merge conflictsAlex Gaynor
2009-03-21Tidied up SQL formatting in SQL panel.Malcolm Tredinnick
Added formatting of "GROUP BY" and "HAVING", which now show up in trunk queries and could have shown up previously if manually patched into the QuerySet.query instance. Also indent joined tables a bit more underneath the "FROM" statement: they are sub-statements of "FROM". Signed-off-by: Rob Hudson <rob@cogit8.org>