Hi Kevin -
Thanks for your help. I am, however, unable to call Column on the tuple (attrname, 'String').
I tried like this:
columns = []
for attribute in attrList:
tup = attribute, 'String'
tupC = Column(tup) // does not work
columns.append(tup)
So Columns (tup) did not work and I also tried calling Column on the tuples list I created in the iterator.
So my call to create a table as in:
theTable = Table (tableName, Metadata, *columns) - does not work. I also tried w/o the column call but did not expect it to work.
So sounds like would be a 'star args' for the Column call as well but am unable to find it.
Please let me know if I am approaching this incorrectly (I assume I am).
Also, I could generate a SQL create statement from my YAML file.
Would there be a way to use the Table command to create a table from that - but it would defeat the purpose as if go with a different DBMS I have to make sure the SQL is addressed? Or does sqlalchemy take care of that as well?
If there is some documentation you could refer me to in how this dynamic generation is implemented will be great.
Also, since it is a tuple I assume I can put in PK / FK information as well.
And I can help create some of this documentation if it does not exist. Its a great library, very helpful, just trying to find some flexibility.
Mono