Re: auto generate model

64 views
Skip to first unread message

tonthon

unread,
Sep 10, 2012, 12:02:20 PM9/10/12
to pylons-...@googlegroups.com
Hi,

guessing you'd like to use sqlalchemy as ORM (you're free to use another
one), there are two methods :

- Using the autoload functionnality (
http://docs.sqlalchemy.org/en/rel_0_7/core/schema.html )
- Generate your model using : http://code.google.com/p/sqlautocode/

I'll hardly suggest the second method which is far more simpler to handle.

Cheers


Gaston TJEBBES
http://www.majerti.fr

Le 10/09/2012 15:03, oto iashvili a �crit :
> Hi,
> I have a website in php and I plan to move it to pyramid. I already
> have a database with more than hundred tables, so I was wondering if
> there is in pyramid a special tool to generate a model.py from an
> existing database (like "inspectdb" in django)
>
> thanks
> --
> You received this message because you are subscribed to the Google
> Groups "pylons-discuss" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/pylons-discuss/-/tmWXYS7GgE0J.
> To post to this group, send email to pylons-...@googlegroups.com.
> To unsubscribe from this group, send email to
> pylons-discus...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/pylons-discuss?hl=en.

oto iashvili

unread,
Sep 10, 2012, 6:04:43 PM9/10/12
to pylons-...@googlegroups.com
thanks a lot, sqlautocode seems to be perfect.


Le lundi 10 septembre 2012 18:02:28 UTC+2, tonthon a écrit :
Hi,

guessing you'd like to use sqlalchemy as ORM (you're free to use another
one), there are two methods :

- Using the autoload functionnality (
http://docs.sqlalchemy.org/en/rel_0_7/core/schema.html )
- Generate your model using : http://code.google.com/p/sqlautocode/

I'll hardly suggest the second method which is far more simpler to handle.

Cheers


Gaston TJEBBES
http://www.majerti.fr

Le 10/09/2012 15:03, oto iashvili a �crit :
Reply all
Reply to author
Forward
0 new messages