From: janemba <cap...@gm...> - 2017-02-05 12:03:02
|
On 02/05/2017 01:01 PM, Oleg Broytman wrote: > Hi! Welcome! > > SQLObject requires that tables have single PRIMARY KEY columns, not > necessary integer (strings are ok) and not necessary named 'id'. But the > PRIMARY KEY must be single column, and SQLObject always refers to the > column as '.id'. > You can declare name and type of the column in sqlmeta inner class: > > class MyTable(SQLObject): > class sqlmeta: > idName = 'my_id' > idType = str Great, thx !! |