Aw: First psycopg3 docs - Mailing list psycopg

From Karsten Hilbert
Subject Aw: First psycopg3 docs
Date
Msg-id trinity-991ceed6-31a1-43fc-a219-b075ec77d5d5-1605289047367@3c-app-gmx-bs22
Whole thread Raw
In response to First psycopg3 docs  (Daniele Varrazzo <daniele.varrazzo@gmail.com>)
Responses Re: First psycopg3 docs
List 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 by date:

Previous
From: Daniele Varrazzo
Date:
Subject: First psycopg3 docs
Next
From: Daniele Varrazzo
Date:
Subject: Re: First psycopg3 docs