[PyQt] QSqlRelationTableModel question

Scott Frankel frankel at circlesfx.com
Mon Jul 14 15:06:45 BST 2008


Hello,

Is it possible to specify the (Postgre)SQL keyword "ONLY" when  
subclassing QSqlRelationTableModel?

My db schema currently uses a mechanism that requires that my select  
statements declare "ONLY" in order to return valid records.  eg:

	SELECT * FROM ONLY foo;

I've seen the subclassed model's internal select statement, using  
model.selectStatement().  I'm hoping to not have to re-implement that  
mess by hand in a hundred custom queries ;)

Thanks in advance!
Scott








More information about the PyQt mailing list