Re: [chicagoboss] BossDB with MySQL table whose key column isn't "id"

75 views
Skip to first unread message

Evan Miller

unread,
Jan 17, 2013, 4:03:26 PM1/17/13
to ChicagoBoss
Only "id" columns are permitted at this point. It would be nice to make this configurable, like

-id_column(user_id).


On Fri, Oct 19, 2012 at 6:37 AM, Ivan Martinez Rodriguez <iv...@yuilop.com> wrote:
Hello all,
I need to read and write a existing MySQL table whose key column is "user_id". I understand from BossDB documentation that the key column should always be "id". Changing the column name is problematic because it means changing all references to the table and all the existing software that uses the database. Is there an alternative to this?.
Thank you,
Ivan

--
 
 



--
Evan Miller
http://www.evanmiller.org/

Graeme Defty

unread,
Jan 17, 2013, 11:09:55 PM1/17/13
to chica...@googlegroups.com
As a horrible hack I would take a look at writing a modified version of the mySQL adaptor which would do the necessary for you, just as an interim measure.

Adaptors are normally not huge (a couple of hundred lines), not complex, and reasonably well-structured, from those I have seen.

g
_______________________________________

--
 
 

ENTR0PY

unread,
Nov 22, 2014, 8:10:31 AM11/22/14
to chica...@googlegroups.com, iv...@yuilop.com
I am hoping this ability to have other attribute names besides id as the key is coming in 1.0 or sooner
Reply all
Reply to author
Forward
0 new messages