Hi,
I am creating my database via SQLAlchemy, therefore I use several "Column()" 
objects in a Table() clause.

For my documentation, it is very handy to gather the table definitions 
directly from my SQLAlchemy-based python code - that's relatively easy, I 
simply import my table-definitions file and look for module attributes that 
end with "_table" (by convention, I always name my tables like that).

Then I can read the table/columns, format them nicely and put them in my 
documentation.

What's missing, however, are description fields: It would be perfect, if I 
could specify a description attribute for the table and the column directly, 
e.g. like that:

myperson_table = Table('person', metadata, 
  Column('id', Integer, primary_key=True, description = 'Identification 
Number'),
  Column('name', String(20), description = 'Name of a person'),
  description = 'Table for my Persons')

I could, also create my own Table/Column classes that hold this information, 
but maybe this could be implemented in SA as a standard feature?

Best Regards,
Hermann

-- 
[EMAIL PROTECTED]
GPG key ID: 299893C7 (on keyservers)
FP: 0124 2584 8809 EF2A DBF9  4902 64B4 D16B 2998 93C7

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

Reply via email to