Aw: First psycopg3 docs

Поиск
Список
Период
Сортировка
От Karsten Hilbert
Тема Aw: First psycopg3 docs
Дата
Msg-id trinity-991ceed6-31a1-43fc-a219-b075ec77d5d5-1605289047367@3c-app-gmx-bs22
обсуждение исходный текст
Ответ на First psycopg3 docs  (Daniele Varrazzo <daniele.varrazzo@gmail.com>)
Ответы Re: First psycopg3 docs  (Daniele Varrazzo <daniele.varrazzo@gmail.com>)
Список psycopg
Hello Daniele,

I see that the Cursor.execute() will continue to support
a Mapping for passing in values.

Perhaps my understanding is lacking, so here goes:

Will using a mapping still allow for use of the binary
protocol ?  I am asking because all the examples I've
seen show the %s (rather than %(varname)s way of
value passing).

In GNUmed I nearly always use %(varname)s with dicts
as that allows for easier collection of values
before the execute() call without needing to account
for the *order* of values.

Karsten



В списке psycopg по дате отправления:

Предыдущее
От: Daniele Varrazzo
Дата:
Сообщение: First psycopg3 docs
Следующее
От: Daniele Varrazzo
Дата:
Сообщение: Re: First psycopg3 docs