Re: [sqlalchemy] Raise exception on implicit join

2015-11-24 Thread Jacob Magnusson
Thanks for the great answer Michael! I feel a bit ungrateful to make use of your solution now first, but I had a really stressful period back in July so I kind of forgot about this. I was hoping I could just activate it for all my queries but then I noticed that it also applies to when you're

Re: [sqlalchemy] Raise exception on implicit join

2015-11-24 Thread Mike Bayer
On 11/24/2015 05:54 AM, Jacob Magnusson wrote: > Thanks for the great answer Michael! I feel a bit ungrateful to make use > of your solution now first, but I had a really stressful period back in > July so I kind of forgot about this. > > I was hoping I could just activate it for all my queries

[sqlalchemy] Raise exception on implicit join

2015-07-28 Thread Jacob Magnusson
Hi guys, I'm trying to avoid implicit joins (i.e. more than one entry in the FROM clause) in my code and I'm wondering if you guys have a good idea on how to best achieve this. I want to raise an exception if a query changes to have more than one entry in the FROM clause. An alternative would

Re: [sqlalchemy] Raise exception on implicit join

2015-07-28 Thread David Allouche
On 28 Jul 2015, at 11:31, Jacob Magnusson m...@jacobian.se wrote: I'm trying to avoid implicit joins (i.e. more than one entry in the FROM clause) in my code and I'm wondering if you guys have a good idea on how to best achieve this. I want to raise an exception if a query changes to have