why dont you aggregate all those functions into just one function? they are all on the same event after all. or have some kind of data structure that has all those functions and you loop through a list to register. lots of ways to make that be less code.


On 01/06/2017 10:43 AM, Darin Gordon wrote:
Is there a way to combine DDL events so to reduce the number of
event.listen(... ) statements that need to be created for a specific
event topic or is that a design mistake that has good reason for missing
implementation?

Take, for instance, the highlighted section of the following repo:
 
https://github.com/Kotaimen/georest/blob/655e17bab7f5b4905d6503cf52929a737234da42/georest/storage/buckets/postgis.py#L269-L296


Thanks

Darin

--
SQLAlchemy -
The Python SQL Toolkit and Object Relational Mapper

http://www.sqlalchemy.org/

To post example code, please provide an MCVE: Minimal, Complete, and
Verifiable Example. See http://stackoverflow.com/help/mcve for a full
description.
---
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
<mailto:sqlalchemy+unsubscr...@googlegroups.com>.
To post to this group, send email to sqlalchemy@googlegroups.com
<mailto:sqlalchemy@googlegroups.com>.
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

--
SQLAlchemy - The Python SQL Toolkit and Object Relational Mapper

http://www.sqlalchemy.org/

To post example code, please provide an MCVE: Minimal, Complete, and Verifiable 
Example.  See  http://stackoverflow.com/help/mcve for a full description.
--- 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 https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to