yeah...if you want a schema level default, SA calls that a
"PassiveDefault":

users = Table('users', meta,
   Column('user_id', Integer, primary_key=True),
   Column('username', String(32), nullable=False),
   Column('email_address', String(60), unique=True, nullable=False),
   Column('password', String(20), nullable=False),
   Column('created', DateTime,
PassiveDefault(func.current_timestamp()),
nullable=False) )


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to