On Thu, May 08, 2008 at 02:05:20PM +0200, Petr Jake?? wrote:
> The table I would like to connect to has about 130 columns. I would like to
> read/write data from/to some columns only. Is there a way not to name all
> 130 columns in the table definition (in the class definition)? I mean is
> there a way to specify only columns I want to read/write from/to?
Just declare columns you need and don't use fromDatabase:
class MyTable(SQLObject):
name = StringCol(dbName="a$name")
value = IntCol(dbName="the$value")
Oleg.
--
Oleg Broytmann http://phd.pp.ru/ [EMAIL PROTECTED]
Programmers don't die, they just GOSUB without RETURN.
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss