sqlobject issue/question...

DarkBlue pict100 at gmail.com
Sat Dec 29 03:11:02 EST 2007


On Dec 29, 12:27 pm, "bruce" <bedoug... at earthlink.net> wrote:
> hi....
>
> i'm playing around, researching sqlobject, and i notice that it appears to
> require the use of "id" in each tbl it handles in the database.
>
> if i already have a db schema, and it doesn't use 'id' as an auto-generated
> field, does that mean that i can't use/implement sqlobject.
>
> is there a way to overide this function/behavior...
>
> thanks

If you want to use all the power in sqlobject you will need the
"id" , you may get away without having one if you use the build in
raw sql facility exclusively , but then again you probably would
not need sqlobject anyway.

You also might want to take a look at sqlalchemy .
Whichever you choose, if you are used to write complex queries in sql
it will take some time to wrap your mind around any of them.

Db



More information about the Python-list mailing list