I'm sorry, I totally misunderstood your question. I thought you were trying
to get all rows as a unified dict. Your result clarified things.
It looks like you're using the ORM (and not core), right?
I don't think it is entirely possible to do what you want. Several people
have asked similar
On 10/19/2016 05:49 PM, Dave Vitek wrote:
Hi all,
I'm using sqlalchemy 0.9.7 (yes, I know we need to upgrade).
I've recently started to employ psycopg2's
psycopg2.extensions.set_wait_callback function to facilitate terminating
ongoing queries in response to activity on other sockets (such as
On Thu, Oct 20, 2016 at 12:11 PM, Lele Gaifax wrote:
> Hi all,
>
> I'd like to have an Entity able to be "attached" to N different others,
> avoiding the need of N intermediate/secondary tables.
>
> I imagine something like the following::
>
> class Address(Base):
>
Hi all,
I'd like to have an Entity able to be "attached" to N different others,
avoiding the need of N intermediate/secondary tables.
I imagine something like the following::
class Address(Base):
__tablename__ = 'addresses'
id = Column(Integer, primary_key=True)