Re: [sqlalchemy] Mimik joinedload for core tables/queries

2013-08-31 Thread gbr
On Sunday, September 1, 2013 8:19:24 AM UTC+10, Michael Bayer wrote: > > On Aug 31, 2013, at 1:16 AM, gbr > > wrote: > > > Could anyone provide some suggestions on where to look in the SQLA code > (or even an example, or some general thoughts) for how to perform a > `joinedload` as the ORM doe

Re: [sqlalchemy] Getting the identity key of a mapped instance w/o SQL query

2013-08-31 Thread Michael Bayer
OK well I think "identity_key" is the more official name at this point, they are synonymous. On Aug 31, 2013, at 5:07 PM, Torsten Landschoff wrote: > > Signed PGP part > Hi Michael, > > On 08/31/2013 12:34 AM, Michael Bayer wrote: > > well those are old functions and they should document th

Re: [sqlalchemy] Mimik joinedload for core tables/queries

2013-08-31 Thread Michael Bayer
On Aug 31, 2013, at 1:16 AM, gbr wrote: > Could anyone provide some suggestions on where to look in the SQLA code (or > even an example, or some general thoughts) for how to perform a `joinedload` > as the ORM does it for Core tables > > For performance reasons, I prefer using Core for loadi

Re: [sqlalchemy] Getting the identity key of a mapped instance w/o SQL query

2013-08-31 Thread Torsten Landschoff
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Michael, On 08/31/2013 12:34 AM, Michael Bayer wrote: > well those are old functions and they should document that what you usually > want is just inspect(obj).key, if you have an object already. I added http://www.sqlalchemy.org/trac/ticket/28

[sqlalchemy] Re: how to combine conditions

2013-08-31 Thread gbr
If I understand you correctly, this should help: http://docs.sqlalchemy.org/en/rel_0_8/core/tutorial.html#conjunctions On Saturday, August 31, 2013 8:42:47 PM UTC+10, Mohsen Pahlevanzadeh wrote: > > Dear all, > > I need to combine conditions, (variable number) , But i do just add > (Insert quer

[sqlalchemy] how to combine conditions

2013-08-31 Thread Mohsen Pahlevanzadeh
Dear all, I need to combine conditions, (variable number) , But i do just add (Insert query) in sqlalchemy,Does sqlalchemy have same featuers? Please explain with code. Yours, Mohsen -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubs