Re: [sqlalchemy] compiler tutorial questions

2021-04-21 Thread Mike Bayer
On Wed, Apr 21, 2021, at 5:10 PM, Soumaya Mauthoor wrote: > Hello Mike > > Your example was really helpful thanks! I hadn't realised you should access > the variables defined in AlterColumn through the element variable, so my > working example I posted before failed but but now works. > >

Re: [sqlalchemy] compiler tutorial questions

2021-04-21 Thread Soumaya Mauthoor
Hello Mike Your example was really helpful thanks! I hadn't realised you should access the variables defined in AlterColumn through the element variable, so my working example I posted before failed but but now works. If you wanted to expand the synopsis and make it more newbie-friendly I would

Re: [sqlalchemy] compiler tutorial questions

2021-04-21 Thread Mike Bayer
On Tue, Apr 20, 2021, at 10:08 AM, Soumaya Mauthoor wrote: > Hello Mike > > Thanks for the quick response. Would you mind helping me write a complete > example? It would help me understand compilation better :-) > it looks like what you have below is a complete example now. > > > I would

Re: [sqlalchemy] compiler tutorial questions

2021-04-20 Thread Soumaya Mauthoor
Hello Mike Thanks for the quick response. Would you mind helping me write a complete example? It would help me understand compilation better :-) I would also be happy to turn this into a merge request if you think other people will benefit from it? I have also converted this into a sqlite example

Re: [sqlalchemy] compiler tutorial questions

2021-04-19 Thread Mike Bayer
On Mon, Apr 19, 2021, at 2:09 PM, sumau wrote: > Hello > > I'm trying to understand compilation and working through the compiler > tutorial: https://docs.sqlalchemy.org/en/14/core/compiler.html > > I was hoping for some clarification : > > 1) What is the difference between starting your

[sqlalchemy] compiler tutorial questions

2021-04-19 Thread sumau
Hello I'm trying to understand compilation and working through the compiler tutorial: https://docs.sqlalchemy.org/en/14/core/compiler.html I was hoping for some clarification : 1) What is the difference between starting your method with visit_XXX instead of compile_XX? 2) self.cmd is used