zefhemel/persistencejs — Issue #58: 'id' column name should be renamed
Author: Vickor
Created: 2011-10-30 01:26:41+00:00
State: open

It's rather inconvenient for the library to use the 'id' column name since that's likely to be a name that would occur in the user's schema. For instance, I have a bunch of data I received from the server, and they all come with 'id' fields. I would have to go through and rename all the id fields before I can dump it in to the client database. If you named the persistence.js column something else, like 'pid' or '_id', it would be less likely to conflict.

As a workaround for now, I just renamed all the occurrences of 'id' in persistence.js to be 'pid'.