jugglingdb
jugglingdb copied to clipboard
Specify id name.
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 ?
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.
+1
+1
+1
+1 And "dbColumnName", and support mapping like "createTime" to "create_time".
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.