public inbox for [email protected]
help / color / mirror / Atom feedFrom: Daniele Varrazzo <[email protected]>
To: [email protected]
Subject: Async notifications in psycopg3
Date: Wed, 27 May 2020 01:22:15 +1200
Message-ID: <CA+mi_8ZXqPXTQ11kR05s2fnRi6TGQEscw4La943_-8ZULeYK_A@mail.gmail.com> (raw)
Hello,
I have introduced async notifications handling for psycopg3. At the
moment it comes in the form of a generator (eventually async - in
asyncio sense) so that they can be used as simply as:
for notify in conn.notifies():
# ... process
but notifies may be also received during the normal query processing,
for which a possible way to receive them can is a callback.
I am not entirely convinced about the design so I'd be happy to
receive some feedback by anyone who has ideas about how they would use
the features. There is a more complete description and references in
<https://github.com/psycopg/psycopg3/issues/5;: happy to have a
conversation either here or on the github ticket.
Cheers,
-- Daniele
view thread (2+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: Async notifications in psycopg3
In-Reply-To: <CA+mi_8ZXqPXTQ11kR05s2fnRi6TGQEscw4La943_-8ZULeYK_A@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox