> A class of mine has no attributes besides its primary key. This key > is a surrogate, so I'd like to assign values automatically via > autoincrement. Unfortunately, it's not possible to persist objects of > this class to the database, as the SQL compiler complains about empty > inserts. Is there a common workaround for this? >
Sure http://www.sqlalchemy.org/docs/05/metadata.html#ddl-level-defaults http://www.sqlalchemy.org/docs/05/metadata.html#defining-sequences -- Jazz is not dead, it just smells funny --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---
