#35629: Implement async cursors
-------------------------------------+-------------------------------------
Reporter: Flavio Curella | Type: New
| feature
Status: new | Component: Database
| layer (models, ORM)
Version: dev | Severity: Normal
Keywords: | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
With Psycopg3 offering async connections and async cursors, we can start
implementing at least part of DEP0009 on the ORM
The first step would be just a low-level API, so that we can make the
async cursor available to our users:
{{{
from django.db import new_connection
async with new_connection(using="default") as conn:
async with conn.acursor() as c:
await c.execute(...)
}}}
''Note: In order to have a simpler and easier review, I've considered
`transaction.atomic` out of scope for this ticket.''
--
Ticket URL: <https://code.djangoproject.com/ticket/35629>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/01070190e656a0fd-4270b755-da21-4160-b8ea-232818d5f72f-000000%40eu-central-1.amazonses.com.