I want to be able to auto generate sqlalchemy model from a schema.
So I have the schema in yaml format.
>From that file, I load it and get the columns and its data type  and also 
the schema name into a dict. And I want to use that dictionary to create 
the sqlalchemy model  not just a normal python class

I have done some research and I see you can use sqlachemy's automap feature 
to do what I want but that is when you supply a DB connection uri. Likewise 
sqlacodegen

-- 
SQLAlchemy - 
The Python SQL Toolkit and Object Relational Mapper

http://www.sqlalchemy.org/

To post example code, please provide an MCVE: Minimal, Complete, and Verifiable 
Example.  See  http://stackoverflow.com/help/mcve for a full description.
--- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sqlalchemy/7ec6a4d3-12b7-4721-b7a5-186e6864ce1an%40googlegroups.com.

Reply via email to