Re: [sqlalchemy] Rewriting input/output values on columns with core

2013-10-08 Thread Gustavo Baratto
Nice! I did not associate the custom typing in the docs with this functionality before. It would have saved me a lot of time! Thank you very much again! g. On Tue, Oct 8, 2013 at 7:12 AM, Michael Bayer wrote: > > On Oct 7, 2013, at 10:26 PM, tiadobatima wrote: > > > Hello there, > > > > I see

Re: [sqlalchemy] Rewriting input/output values on columns with core

2013-10-08 Thread Michael Bayer
On Oct 7, 2013, at 10:26 PM, tiadobatima wrote: > Hello there, > > I see that Column() has "default", "onupdate", and "server_default" to be > used when the value for that column is not present when inserting and > updating... > What would be the best way of rewriting a value that is present

[sqlalchemy] Rewriting input/output values on columns with core

2013-10-07 Thread tiadobatima
Hello there, I see that Column() has "default", "onupdate", and "server_default" to be used when the value for that column is not present when inserting and updating... What would be the best way of rewriting a value that is present when inserting or updating? Similarly, is there any easy way o