Re: about client-side cursors

From: Denis Laxalde <denis(dot)laxalde(at)dalibo(dot)com>
To: Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com>
Cc: psycopg(at)postgresql(dot)org
Subject: Re: about client-side cursors
Date: 2021-02-10 14:46:54
Message-ID: 921417ec-6fc6-a622-b47f-fd5edccfd9c1@dalibo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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!

In response to

Browse psycopg by date

  From Date Subject
Next Message Hunt, Brian C. 2021-02-24 15:24:56 License LPGL and commercialization
Previous Message Daniele Varrazzo 2021-02-10 12:43:39 Re: about client-side cursors