This project is archived and is in readonly mode.
Feature: add an "execute()" method on the Connection object
-
Daniele Varrazzo
- State changed from new to invalid
No, I don't think it is a good idea: it saves you a single line of code (which is not the design guideline of python systems) at the expense of writing code that will have to be changed if you want to port the program to another database, which is exactly what the dbapi wants to avoid. Psycopg does have dbapi extensions, but they are there to access features not available otherwise within the dbapi interface.
This is my opinion: feel free to raise the discussion in the mailing list, but I don't expect it to be well accepted. There are plenty of python postgres drivers with their own interface, and all of them have been abandoned.