Re: about client-side cursors - Mailing list psycopg

From Denis Laxalde
Subject Re: about client-side cursors
Date
Msg-id 921417ec-6fc6-a622-b47f-fd5edccfd9c1@dalibo.com
Whole thread Raw
In response to Re: about client-side cursors  (Daniele Varrazzo <daniele.varrazzo@gmail.com>)
List psycopg
Daniele Varrazzo a écrit :
> So, in the server-side branch, I've made the function non-async on
> AsyncConnection too. This makes also context manager better to use, as
> now you can do:
> 
>      async with aconn.cursor() as cur:
>          # use it
> 
> whereas previously it would have taken an `async with await aconn.cursor()`.
> 
> I assume the change is welcome, but please let me know if this is not the case.

Yes, that change is welcome. Thanks!



psycopg by date:

Previous
From: Daniele Varrazzo
Date:
Subject: Re: about client-side cursors
Next
From: Daniele Varrazzo
Date:
Subject: Psycopg 2.9 released