[SQL-CVS] SQLObject/docs SQLObject.txt,1.6,1.7
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: <ian...@us...> - 2003-04-03 19:37:03
|
Update of /cvsroot/sqlobject/SQLObject/docs In directory sc8-pr-cvs1:/tmp/cvs-serv6240/docs Modified Files: SQLObject.txt Log Message: Added note about SQLite Index: SQLObject.txt =================================================================== RCS file: /cvsroot/sqlobject/SQLObject/docs/SQLObject.txt,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** SQLObject.txt 13 Mar 2003 20:05:28 -0000 1.6 --- SQLObject.txt 3 Apr 2003 19:36:59 -0000 1.7 *************** *** 729,732 **** --- 729,748 ---- console. + SQLite + ------ + + SQLite doesn't support a great deal of concurrency. For instance, say + you want to delete a bunch of rows:: + + for p in Person.select(Person.q.firstName == 'Bob'): + p.destroy() + + Because the ``select`` is an iterator, and keeps a connection open, + when you do the ``p.destroy()`` you'll get an exception, because + SQLite doesn't support this concurrency. Instead, do:: + + for p in list(Person.select(Person.q.firstName == 'Bob')): + p.destroy() + Exported Symbols ================ |