Re: SQLObject - Connect to established DB with non-int 'id' field
- From: Sean DiZazzo <half.italian@xxxxxxxxx>
- Date: Sat, 20 Oct 2007 07:10:07 -0000
On Oct 19, 11:51 pm, "Diez B. Roggisch" <de...@xxxxxxxxxxxxx> wrote:
Sean DiZazzo schrieb:
Hi all,
I am just beginning with TurboGears and have run into a problem with
SQLObject.
I'm trying to connect to an established mysql DB, and use TurboGears
to display results from the DB only. The problem is that the DB
already has an 'id' field that is a string as opposed to an int.
SQLObject complains because it wants to use the id field for it's own
purposes.
How can I use TurboGears to get data out of this DB?
http://sqlobject.org/FAQ.html#non-integer-ids
While I personally prefer SQLObject over SQLAlchemy, the latter has
better legacy-database-support. Maybe a switch would be the better solution.
Diez
doh...I swear I looked there! This time I see it. Thanks.
~Sean
.
- References:
- SQLObject - Connect to established DB with non-int 'id' field
- From: Sean DiZazzo
- Re: SQLObject - Connect to established DB with non-int 'id' field
- From: Diez B. Roggisch
- SQLObject - Connect to established DB with non-int 'id' field
- Prev by Date: Re: SQLObject - Connect to established DB with non-int 'id' field
- Next by Date: Re: __main__ : What is this?
- Previous by thread: Re: SQLObject - Connect to established DB with non-int 'id' field
- Next by thread: Re: SQLObject - Connect to established DB with non-int 'id' field
- Index(es):
Relevant Pages
|