Re: API 3.0 limiting paramstyle to ['named', 'qmark'] is okay. ('format' is not desirable)
Michael Bayer <[email protected]>
| Newsgroups | gmane.comp.python.db |
|---|---|
| Message-ID | <[email protected]> |
On May 17, 2013, at 1:30 PM, M.-A. Lemburg <[email protected]> wrote: > As for how to adjust the paramstyle, I think Vernon's summary > is a good one. SQLAlchemy and other applications could then > do (*): > > import dbapi_module > # We want named paramstyle on all connections: > dbapi_module.paramstyle = 'named' > > and reduce the overhead of having to escape percent signs. just to confirm - that'll work on connections and cursors too, right? I wouldn't want to do it at the module level. _______________________________________________ DB-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/db-sig