#67: Add methods for returning scalar values
--------------------------------+-----------------
 Reporter:  cito                |      Owner:
     Type:  enhancement         |     Status:  new
 Priority:  minor               |  Milestone:  5.1
Component:  Classic and DB API  |    Version:  4.1
 Keywords:  scalar              |
--------------------------------+-----------------
 Often you have queries that are intended to return only a single row of
 values, a single column of values, or just a single value.

 In these cases, it would be useful to have methods that return the data
 only as a single sequence (not a sequence of sequences), or a single
 value.

 The DB API 2 already has the fetchone() method that can be used to get a
 single row. The classic interface does not have such a method. Both do not
 have a method for returning a single column or single scalar value.

 Maybe a `fetchscalar()` method for the DB API 2 and a `getscalar()` method
 for the classic interface would be useful.

 See also #48 ("Add methods returning interator of rows to the classic
 module") in this context.

--
Ticket URL: <http://trac.pygresql.org:8000/pgtracker/ticket/67>
PyGreSQL <http://www.pygresql.org/>
PyGreSQL Tracker
_______________________________________________
PyGreSQL mailing list
[email protected]
https://mail.vex.net/mailman/listinfo.cgi/pygresql

Reply via email to