[sqlalchemy] Re: customize table creation

2007-01-10 Thread Daniel Haus

On 9 Jan., 22:59, Jonathan Ellis [EMAIL PROTECTED] wrote:
 You're trying to dynamically add columns to the table in the database,
 or just to the Table instance?

Just to the Table instance, no database tables should exist at that
point.


--~--~-~--~~~---~--~~
 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
-~--~~~~--~~--~--~---



[sqlalchemy] Re: customize table creation

2007-01-09 Thread Jonathan Ellis

On 1/9/07, Daniel Haus [EMAIL PROTECTED] wrote:

 Hi alchemists!

 Is there any way to have SA do some custom work before it creates a
 table? I tried to subclass Table and override create, which
 obviously doesn't work that easily. Any suggestions or ideas?

 The background is, I have some objects that dynamically add columns to
 the table on demand, which seems to work fine. Now, I need to ensure
 that these objects can do their work on table creation. And doing it
 manually would be painful...

You're trying to dynamically add columns to the table in the database,
or just to the Table instance?

--~--~-~--~~~---~--~~
 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
-~--~~~~--~~--~--~---