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 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 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/sqlalchemy?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" 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/sqlalchemy?hl=en.

Reply via email to