Robert Leftwich wrote:

On Thu, 02 Feb 2006 17:54:07 +1100, "Huy Do" <[EMAIL PROTECTED]> said:
Is there a way to see what sql sa is sending to the database ?

engine.echo = True
will echo just the sql to screen (actually the looger output but that
defalts to the screen).

engine.echo = 'debug'
will echo the results as well.

For more info see
http://sqlalchemy.org/docs/dbengine.myt#dbengine_options

Thanks Robert, that worked great. That is some beautiful sql in generates.

Huy

Man this library is so damn good I can't believe how easy it is to use. I've been writing an auto web database admin interface (in myghty) based on the SA mappers and models and damn it is so easy. There is so much power in this thing I'm getting goose bumps working with it :-P

Agreed - it is awesome!

Robert



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Sqlalchemy-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users

Reply via email to