tnx
how to use it. sqlautocode is a package
but it says use autocode.py... which is not in the package
On Aug 8, 12:04 am, Michael Trier mtr...@gmail.com wrote:
Hi,
On Fri, Aug 7, 2009 at 1:41 AM, dusans dusan.smit...@gmail.com wrote:
is there something similar to inspectdb in sqlalchemy
Dusan,
I believe you can use declarative_base to define your ORM,
and then either use autoload=True on its Table object, or
set Base.metadata.reflect(bind=your_db_engine) to reflect all of your db
tables.
See:
http://www.sqlalchemy.org/docs/05/ormtutorial.html
Hi,
On Fri, Aug 7, 2009 at 1:41 AM, dusans dusan.smit...@gmail.com wrote:
is there something similar to inspectdb in sqlalchemy
where it returns orm classes for tables already in the db?
-
You mean like this:
http://www.sqlalchemy.org/trac/wiki/UsageRecipes/AutoCode
Also if you don't want