#63: Add a truncate() method to the DB class
-------------------------+-----------------
 Reporter:  cito         |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  minor        |  Milestone:  5.0
Component:  Classic API  |    Version:  4.1
 Keywords:               |
-------------------------+-----------------
 I thought it could be useful to have a `truncate(table, cascade=False,
 restart=False)` method in the DB class that would execute the
 [http://www.postgresql.org/docs/current/static/sql-truncate.html TRUNCATE]
 command on a table.

 This method for quickly ''clearing'' a table would nicely complement the
 `inserttable` method for quickly ''filling'' a table. Therefore I wonder
 if it should be called "truncatetable". However, I don't like the
 concatenation of words without camelcase or underscore, and contrary to
 insert there is no single-row operation that truncate could be confused
 with anyway. So currently I prefer simply "truncate" as the name of the
 method.

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

Reply via email to