Debugging Storm queries

Storm does not have a query log like you might know from Django. Not to my knowledge at least, the docs are still lacking.

If you need to know what queries are executed, you can do:

from storm import database
database.DEBUG = True

This will print all statements to stdout. If you need more, I suppose there’s nothing stopping you from hooking into storm.database.Connection.raw_execute.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s