Hi,

I'm new to Pylons, and I would like to use it with an existing
PostgreSQL database. I understand that SQLAlchemy can set up a
complete database (using "metadata.create_all()"), complete with
foreign keys and sequences, but I have absolutely no interest in this,
since I have already crafted the database using conventional tools,
and Pylons would be simply one of many client apps.

So, where do I start to use my existing database with Pylons? I
understand I need something like a model.py file, as explained in
Chapter 7 of the Pylons Book. Do I have to reverse engineer the
tables, sequences, field names/types/constraints, and relations? This
sounds awful. Are there any tools to help me import or translate a
database schema to a Python/SQLAlchemy model? With the Python model,
can I choose to only define the names and types, and not define
defaults and constraints (since they are already done within the
database)?

Thanks.

-Mike

--

You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.


Reply via email to