On Mon, Mar 13, 2006 at 12:53:36PM +0100, Uwe Grauer wrote:
> Can i introduce user defined column types?

   Easy. Columns classess in SQLObject are not magical; in a sense all of
them are user-defined.

> Say i want to use a decimal with size 18 and precision 0.
> Do i have to use a DecimalCol(size=18, precision=0) or can i define my
> own type for this?

   You can do both.

> How would i do this? I prefer a little code snippet if it's doable.

   Look into sqlobject/col.py - all columns types are difined there. For a
column you need a public xxxCol class and SOxxxCol implementation.

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 xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to