PDA

View Full Version : IndexedDB proxy for sencha touch



yupitz
16 Jan 2014, 5:27 AM
I've implemented a proxy for sencha touch based on indexeddb database.
You can find the js file and a simple demo at the following link: https://github.com/yupitz/IndexedDB
At the moment is not possibile to handle the db version's upgrade, and is not possible to filter the records given from the query operations.

fmoseley
17 Jan 2014, 10:57 AM
Cool! I've seen requests for this recently. Thanks for sharing.

EPV
2 Apr 2014, 7:31 AM
yupitz,

This looks very good. We will probably use IndexedDB in a project soon.
Are you still working with this proxy? Any dos and donts?

/ E

yupitz
16 Apr 2014, 9:22 PM
Hi EPV
at the moment i have no much time to spend with this proxy. But maybe in the future it could be usefull also for my projects. So if you have some requests or suggestions for any improvement, they will be integrated in the next version.

ps: i'm sorry for the slow response

steven2k2
16 Apr 2015, 5:45 PM
Hi,

I'm swapping between a REST proxy and IndexedDB to store data offline. Is there any way to use a server supplied id (called 'id') as the IndexedDB id?

The id field works with the REST proxy, has to be renamed (e.g item_id) and can't be the idProperty when used with the indexedDB proxy.

thanks.