Re: [sqlalchemy] server_default argument in Column(DateTime, server_default = ...)

2010-10-16 Thread Michael Bayer
func.now() will translate into the appropriate construct for a given backend, so server_default=func.now() will do it. On Oct 15, 2010, at 9:01 PM, Domingo Aguilera wrote: HI, I wonder if there's a way to use server_default in Column ( DateTime, server_default = ...) to make a database

[sqlalchemy] server_default argument in Column(DateTime, server_default = ...)

2010-10-15 Thread Domingo Aguilera
HI, I wonder if there's a way to use server_default in Column ( DateTime, server_default = ...) to make a database agnostic current timestamp as default . Cheers. -- You received this message because you are subscribed to the Google Groups sqlalchemy group. To post to this group, send email