[DB-SIG] Optional DB API Extensions

brian zimmer bzimmer@ziclix.com
Tue, 23 Oct 2001 20:38:51 -0500


I like the other suggestions and I think the addition of .lastrowid is also
extremely useful.

brian

-----Original Message-----
From: db-sig-admin@python.org [mailto:db-sig-admin@python.org]On Behalf
Of Federico Di Gregorio
Sent: Tuesday, October 23, 2001 7:08 PM
To: DB-SIG @ Python.org
Subject: Re: [DB-SIG] Optional DB API Extensions


first of all, thank you very much for writing "what i wanted to write by
i had not the time". here's a little addiction. some (longer) others
will come. what about the distinction of Official extensions (if you
implement the extension you _should_ implement it the dbapi way) and
Unofficial ones? Can we consider the ones in this pep unofficial and the
ones that get moved to the dbapi pep official? (s/// any term you like
for official/unofficial.)

here's my little addition:

     Cursor Attribute .lastrowid

         This read-only attribute provides the rowid of the last
         modified row (most databases return a rowid only when a single
         INSERT operation is performed.) If the operation does not set
         a rowid or if the database does not support rowids, this attribute
         should be set to None.

--
Federico Di Gregorio
Debian GNU/Linux Developer & Italian Press Contact        fog@debian.org
INIT.D Developer                                           fog@initd.org
   God is real. Unless declared integer. -- Anonymous FORTRAN programmer


_______________________________________________
DB-SIG maillist  -  DB-SIG@python.org
http://mail.python.org/mailman/listinfo/db-sig