jugglingdb icon indicating copy to clipboard operation
jugglingdb copied to clipboard

Specify id name.

Open francoiscolas opened this issue 12 years ago • 6 comments

Is it planned to specify an id column name ? I am going to use jugglingdb on an existing db and I can't easily change the primary key name.

It could be done by specifying a "idAttribute" in model settings ?

francoiscolas avatar Feb 19 '13 14:02 francoiscolas

Sure, it should be primaryKey: {name: 'record_id'} setting of model. It's good feature request but it requires big changes in all adapters, so, I don't know how long it will take to implement.

On Tue, Feb 19, 2013 at 10:02 PM, François Colas [email protected]:

Is it planned to specify an id column name ? I am going to use jugglingdb on an existing db and I can't easily change the primary key name.

It could be done by specifying a "idAttribute" in model settings ?

— Reply to this email directly or view it on GitHubhttps://github.com/1602/jugglingdb/issues/211.

anatoliychakkaev avatar Feb 19 '13 15:02 anatoliychakkaev

+1

LoicMahieu avatar May 29 '13 17:05 LoicMahieu

+1

edinella avatar Jun 19 '13 05:06 edinella

+1

jihaia avatar Jul 23 '13 06:07 jihaia

+1 And "dbColumnName", and support mapping like "createTime" to "create_time".

taoyuan avatar Aug 01 '13 02:08 taoyuan

This change should include #119. I should have some time this weekend to work on it in my fork and when I'm done I'll issue a pull request.

alexmingoia avatar Aug 01 '13 19:08 alexmingoia