Re: [sqlalchemy] Re: SQLAlchemy: Table creation before data insertion?

2014-12-16 Thread SF Markus Elfring
take your Base object and Base.metadata.create_all(engine) Thanks for your helpful advice. I have integrated it into a small script which I published a moment ago together with a result from static source code analysis. http://article.gmane.org/gmane.linux.kernel/1852033

[sqlalchemy] Re: SQLAlchemy: Table creation before data insertion?

2014-12-07 Thread Marco
Hi, straight from the docs: engine = create_engine('sqlite:///:memory:') metadata = MetaData() user = Table('user', metadata, Column('user_id', Integer, primary_key = True), Column('user_name', String(16), nullable = False), Column('email_address', String(60), key='email'),

Re: [sqlalchemy] Re: SQLAlchemy: Table creation before data insertion?

2014-12-07 Thread Ed Rahn
take your Base object and Base.metadata.create_all(engine) On 12/08/2014 01:25 AM, SF Markus Elfring wrote: http://docs.sqlalchemy.org/en/rel_0_9/core/metadata.html#sqlalchemy.schema.MetaData.create_all I do not want to create meta-data in my use case explicitly. Should the class library