Re: [sqlalchemy] a Python-side value or SQL expression is required

2017-06-06 Thread alexei . bogdanov
Yes, I see, thank you! The only reason I insist trying to understand the logic, because IMHO the mechanism of attributes invocation like: sa.insert(SomeClass).values( {SomeClass.service_id: '12'} ) is more natural and explicit then using string col names, even from point of OOP. On

Re: [sqlalchemy] a Python-side value or SQL expression is required

2017-06-05 Thread alexei . bogdanov
Thanks Mike, I understand what you're talking about, but still this alchemy machinery is pretty much ambiguous. For, example: if SomeClass was a Table instance with Column attributes, this insert would work successfully: print sa.insert(SomeClass).values([ {SomeClass.c.service_id:

Re: [sqlalchemy] a Python-side value or SQL expression is required

2017-06-02 Thread alexei . bogdanov
Hi, sorry for interfering, but the question is still the same, but with a little bit tricky condition. Please, have a look stackoverflow . On Monday, January 18,