Hi!

On 23 Sep., 23:10, Michael Bayer <[EMAIL PROTECTED]> wrote:
> Table is a class constructor, the Column entries are *args sent to  
> the constructor.  just create Column objects on the fly....i.e.
>
> types = {'string':String, 'int':Integer}
>
> res = []
> for rec in xmlrecords:
>         res.append(Column(rec['name'], types[rec['type']], ...))
>
> t = Table(*res)
>
> build on this as necessary to get the type arguments in, primary key  
> flags, etc.

This looks really like the kind of thing I was looking for. Thanks!

Frederik


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
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