Re: [SQLObject] sqlobject Primary Keys
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Uwe G. <mai...@on...> - 2006-03-13 12:24:59
|
Oleg Broytmann wrote: > On Mon, Mar 13, 2006 at 12:50:12PM +0100, Uwe Grauer wrote: >> Is it possible to use something different than INT cols for Primary Keys? >> If so, how to do that? > > It's possible to use strings: > > class MyTable(SQLObject): > class sqlmeta: > idType = str > > Oleg. Only strings? I'm planning to use something equivalent to DecimalCol(size=18, precision=0). I want to hide this into a user-defined column. Regards, Uwe |