public inbox for [email protected]
help / color / mirror / Atom feedFrom: Karsten Hilbert <[email protected]>
Cc: [email protected]
Subject: Aw: First psycopg3 docs
Date: Fri, 13 Nov 2020 18:37:27 +0100
Message-ID: <trinity-991ceed6-31a1-43fc-a219-b075ec77d5d5-1605289047367@3c-app-gmx-bs22> (raw)
In-Reply-To: <CA+mi_8auX2vz6i+E74bxOC7hFcGDQzBAY3GypUBkAK+NveFtfQ@mail.gmail.com>
References: <CA+mi_8auX2vz6i+E74bxOC7hFcGDQzBAY3GypUBkAK+NveFtfQ@mail.gmail.com>
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
view thread (3+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: Aw: First psycopg3 docs
In-Reply-To: <trinity-991ceed6-31a1-43fc-a219-b075ec77d5d5-1605289047367@3c-app-gmx-bs22>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox