On Jul 17, 2008, at 4:44 PM, Kris Kennaway wrote:
>
>
> from sqlalchemy.orm import sessionmaker
> Session = sessionmaker(bind=engine)
> session = Session()
>
> ed_user = User('ed', 'Ed Jones', 'edspassword')
> session.add(ed_user)
>
> session.add_all([
> User('wendy', 'Wendy Williams', 'foobar'),
> User('mary', 'Mary Contrary', 'xxg527'),
> User('fred', 'Fred Flinstone', 'blah')])
>
> session.commit()
>
you're missing a "metadata.create_all()" in there. From your
declarative base call Base.metadata.create_all(engine).
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---