Re: [sqlalchemy] create and update table dynamically in declarative base

2015-09-19 Thread Mike Bayer
On 9/17/15 5:11 PM, Nana Okyere wrote: So I have a form that will collect the name attribute of TableInfo. Now, how do I dynamically - in runtime- create an empty table with the name attribute given? I'm not sure what this is asking. An "empty" table is this: t = Table('mytable',

[sqlalchemy] create and update table dynamically in declarative base

2015-09-17 Thread Nana Okyere
I'm new to flask, python and sql alchemy. I'm using flask for a small application. Hence I'm using flask-sqlalchemy. I know it uses the declarative base. I have model.py as: from app import db > > >> >> def _create_db_sequence(name): > > # if db is Oracle create the sequence > > if