[SQLObject] a simple question and small code changes
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Peter W. <pw-...@te...> - 2003-04-02 15:44:38
|
Hi. I've just started having a look at SQLObject and so far very impressed - seems nice and natural. I'm using the download from the website, not cvs, and can't find a way to delete a row from the database, is there something that I'm overlooking or is this not implemented yet? Also I've been using SQLite quite extensively lately and noticed a couple of places in DBConnection.py that can be added to/changed. To find if a table exists (def tableExists) in SQLite use: select tbl_name from sqlite_master where type='table' where tbl_name = 'TABLE' Also createIDColumn should be: return '%s INTEGER PRIMARY KEY' % soClass._idName INTEGER is the only type specified that means anything to SQLite. Hope that helps. Again looking good so far :-) -- peter w. |