On Feb 4, 4:54 pm, "Michael Bayer" <[EMAIL PROTECTED]> wrote:
> hi -
>
> use the class_mapper(classname).props dictionary.
Not sure if that will work. Consider:
users_table = Table('app_user', metadata,
Column('user_id', Integer, primary_key=True),
Column('user_name', Unicode(16), unique=True),
Column('email_address', Unicode(255), unique=True),
Column('display_name', Unicode(255)),
Column('password', Unicode(40)),
)
class PickyUser(object):
def __init__(self, user_id, user_name, password):
# do init with the props
I can see that he props will tell me what the table columns are, but
not how to create the class.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---