Having this code
class Base(object):
@declared_attr
def __tablename__(cls):
return '{0}s'.format(camel_case_to_name(cls.__name__))
class Model(Base):
id = Column(Integer, Sequence(???, optional=True), primary_key=True)
is there a way to use name of Model's table inside declaration of "id"
column?
Regards,
Piotr Dobrogost
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.