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 !!



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to