On 11/30/06, jose <[EMAIL PROTECTED]> wrote:
>
> John Lavoie wrote:
>
> >sqlsoup is for connecting to databases where your structure is already
> >defined.  If you are connecting to a legacy database that you cannot
> >modify, sqlsoup will automatically read the database and generate all of
> >your ORM classes without any additional configuration.
> >
> >Of course, this assumes that you have a well defined database that has
> >all primary and foreign keys defined.
> >
> >
> >
> sqlalchemy already does it for me with the command:
>
> mytable = Table(name, database.metadata, autoload=True)
>

No, you're missing the point.  There would be no need to define the
table like that, you'd just do:

db = SqlSoup(metadata)

Then you can access all your tables via db.<tablename> as you would do
with your normal table definitions.  If you have a very large amount
of *well defined* tables in your database then SqlSoup may save you a
lot of time and typing.


-- 
Lee McFadden

blog: http://www.splee.co.uk
work: http://fireflisystems.com
skype: fireflisystems

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to