--
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+...@googlegroups.com.
To post to this group, send email to sqlal...@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/groups/opt_out.
Class MyGenericTable(object):def __init__(self, table):self.tablename = table@propertydef metadata(self):return DB.instance().metadata@propertydef table(self):return self.metadata.tables[self.tablename]@propertydef columns(self):return self.table.c@propertydef c(self):return self.columns@propertydef primary_key(self):return self.table.primary_keydef select(self, data):""" my select """some custom code
def insert(self, data):""" my insert """some custom code
You received this message because you are subscribed to a topic in the Google Groups "sqlalchemy" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sqlalchemy/EoTA-H1s-bQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sqlalchemy+...@googlegroups.com.