Can someone tell me why this code won't create any tables? The tables are defined in another file that calls declarative_base().

I presume the problem is that it doesn't know which tables to create. If so, how do I tell it what tables to create?

Base = declarative_base()
database = 'sqlite:///convert/db.sqlite'
engine = create_engine(database, echo=True)
metadata = Base.metadata
metadata.create_all(engine)  # Does nothing, says nothing
Session = sessionmaker()
Session.configure(bind=engine)

Thanks,
Michael

--
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.

Reply via email to