I know it's trivial to loop through the db and do some analysis to
build each sqlobject with *all* the right attributes but isn't there a
script that already does this built into TurboGears or SQLObject?

sqlmeta.fromDatabase has many problems.  First and foremost, it's
cumbersome and inefficient to deal with variable DSNs (I currently
have a pool of objects that listen for dsn changes and then refresh
themselves.  yuck).

k

On 2/9/06, Jorge Godoy <[EMAIL PROTECTED]> wrote:
>
> How would you choose what 91 tables?  My PostgreSQL has some schemas (which
> schemas would you process?), system tables, etc.
>
> I believe that what you read is "fromDatabase".
>
> But you can always write a list with table names and a template and then some
> code to loop through the template creating the necessary structure for you.
>
> With some DB module you can even retrieve table names from your database
> instead of typing it.

Reply via email to