Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UUID, keyPath, webkit-sqlite #218

Open
demaniak opened this issue Aug 14, 2015 · 1 comment
Open

UUID, keyPath, webkit-sqlite #218

demaniak opened this issue Aug 14, 2015 · 1 comment

Comments

@demaniak
Copy link
Contributor

Hi.
Using the keyPath plugin, and a UUID as key, with the webkit-sqlite adapter breaks in various interesting ways.

First, the key in object syntax breaks (for example, keyPath.js keyEmbellish function).

After that, it seems that when saving, the keyExtraction function returns the id (key) as '"56f6b98d-d82f-4f4e-8a77-b42208dd4432"' - note the " characters. This is a consequence of the use of JSON.stringify at one point. This does not break saving, but it DOES break for remove, where essentially the ID values then do not match. Not sure about other functions at this point.

I have managed to hack and slash things into a working condition for the project I need it, but the code is not at a point I'm willing to submit a PR. I will do so IFF I get the time to polish a bit.

@MarkMYoung
Copy link
Collaborator

I will be back in town in a couple of weeks. If you can create a JSFiddle and post it to me or in here, I'll look into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants