Re: Executing on the connection?
От | Daniele Varrazzo |
---|---|
Тема | Re: Executing on the connection? |
Дата | |
Msg-id | CA+mi_8Y+fuzZcT+boRwcQKPd58B=bc324MA2=TAd6xuAvfuMmw@mail.gmail.com обсуждение исходный текст |
Ответ на | Executing on the connection? (Daniele Varrazzo <daniele.varrazzo@gmail.com>) |
Ответы |
Re: Executing on the connection?
|
Список | psycopg |
On Wed, 2 Dec 2020 at 11:20, Daniele Varrazzo <daniele.varrazzo@gmail.com> wrote: > I'm toying with the idea of adding a 'connection.execute(query, > [params])' methd, which would basically just create a cursor > internally, query on it, and return it. No parameter could be passed > to the cursor() call, so it could only create the most standard, > client-side cursor (or whatever the default for the connection is, if > there is some form of cursor_factory, which hasn't been implemented in > psycopg3 yet). For anything more fancy, cursor() should be called > explicitly. This is what I've pushed earlier: https://www.psycopg.org/psycopg3/docs/connection.html#psycopg3.Connection.execute Feedback is welcome. Cheers! -- Daniele
В списке psycopg по дате отправления: