The flask-sqlalchemy documentation is very short, and shows how to create all the tables from a file with classes representing those tables.
a table class is something like this :
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
db = SQLalchemy(app)
class Table(db.Model):
id = db.Column(db.Integer)
name = db.Column(db.String)
db.create_all()
This will create a table into whatever database is specified with the 'app' config
What I wanna do is to create tables using a simple form
how can I create a single table dynamically ?
something like
def createTable(column1,column2):
#create table