On Saturday, January 31, 2015 at 7:41:15 PM UTC-5, Fabio Caritas 
Barrionuevo da Luz wrote:
>
> Hello, how to log all SQL executed during database introspection?
>
> I would like to understand how exactly SQLAlchemy does on introspection 
> the database.
>


The easiest way is to turn on ALL sql logging to the python logger.   The 
engine accepts an `echo` param that will enable this:

http://docs.sqlalchemy.org/en/rel_0_9/core/engines.html#sqlalchemy.create_engine.params.echo

if you only want to handle database introspection, you'd probably need to 
use the events system.

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to