Lukasz Szybalski ha scritto:
> There is around 20 tables with a lot of foreign key, compound keys and
> alternative keys.
>
> Which mapper do I use?
>
By mapper, do you mean a layer like ActiveMapper or Elixir?
I am happy with the autoload feature. No need to declare the tables at all.
Actually, I've never declared a table schema in python if not for
testing purposes.
tables = []
for name in engine.execute("SHOW TABLES"):
tables[name] = sa.Table(name, metadata, autoload=True)
Then you proceed by attaching your mapped classes with assign_class.
I do that also for the user, group, permission, and visit tables. 78
tables and growing with compound foreign keys, views, triggers, and the
like.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---