Ticket #13101: 13101-queries.diff

File 13101-queries.diff, 693 bytes (added by davidfischer, 5 years ago)

Updated the attached file with Russell's proposal

  • docs/faq/models.txt

     
    2828parameter quoting.  Parameter quoting is performed by the database-specific
    2929backend, and not all backends provide a way to retrieve the SQL after quoting.
    3030
     31.. versionadded:: 1.2
     32
     33If you are using :ref:`multiple databases<topics-db-multi-db>`, you can see the
     34queries using the alias of the database::
     35
     36    >>> from django.db import connections
     37    >>> connections['my_db_alias'].queries
     38
    3139Can I use Django with a pre-existing database?
    3240----------------------------------------------
    3341
Back to Top