Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Message from discussion Adding hooks to methods that generate SQL in django/core/management.py
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Brian Harring  
View profile  
 More options Aug 12 2007, 3:18 pm
From: Brian Harring <ferri...@gmail.com>
Date: Sun, 12 Aug 2007 12:18:19 -0700
Local: Sun, Aug 12 2007 3:18 pm
Subject: Re: Adding hooks to methods that generate SQL in django/core/management.py

On Sun, Aug 12, 2007 at 09:20:06AM -0400, George Vilches wrote:
> Something that I found a little irksome while working on this is that
> the DatabaseWrapper class for each backend doesn't inherit from some
> logical parent.  I know that all the db-specific functionality is
> wrapped by these classes, but there are things that are in each class
> that are most definitely shared functionality, like the mechanism by
> which util.CursorDebugWrapper is instantiated.

Might want to take a look at ticket 5106; was working on connection
pooling earlier this week, but ran into the same "wow, backend code
needs some serious refactoring"- will push the patch later today, but
basically have shifted everything so that construction, inspection,
and client bits all are bound to the actual database wrapper instance
itself- via that, can use a generic connection pooler that just wraps
the real db wrapper.  You would be able to do the same thing I
suspect- just pick out the correct method, and insert the logging there.

~harring

  application_pgp-signature_part
< 1K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.