Hi,

how can I execute a statement for each new connection. I'm using the 
trigram module (pg_trgm) for PostgreSQL and I need to set a threshold by 
calling an SQL function for each new connection (`select set_limit(0.5);`).

I'm using the expression API and `engine.execute`. I looked at the event 
API, but the `connect` event does not give me a Connection to execute the 
statement. Are there any other options?

Regards,
Oliver


-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/sqlalchemy/-/eBBhnajRmCAJ.
To post to this group, send email to sqlalchemy@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to