Giter VIP home page Giter VIP logo

Comments (5)

jmdobry avatar jmdobry commented on May 30, 2024

What is your intent with this issue?

from js-data.

pdorgambide avatar pdorgambide commented on May 30, 2024

I suggest that the js-data could implements JSON Path to Diferential Syncronization
This funcionality allow integrate js-data with servers that implement JSON Path like Spring Sync (see http://www.slideshare.net/briancavalier/differential-sync-and-json-patch-s2-gx-2014).
It adds a new offline capability to the library (like Firebase, ??), the local data could be stored into PouchDB, the changes on oflline model generate the patch (JSON Path) that finally could sync with the server through a standard.
I appreciate your feedback an opinon about it, it is probably that this issue will be out of your goals about the library..
Thanks a lot and great job (by this library and angular-data).

from js-data.

jmdobry avatar jmdobry commented on May 30, 2024

I see what your'e getting at. Since js-data itself is the core, in-memory data store only, this does fall out of the scope of js-data. Persistence to other sources has been abstracted away from js-data. That doesn't mean that an adapter couldn't tackle this problem. In fact, I already have js-data-firebase, which allows you to interact with firebase through the data store. It's on the roadmap to create js-data-pouchdb, which could also address this issue. Using a pouchdb should allow offline sync, as the developer only has to interact with the data store (js-data), while pouchdb handles syncing to couchdb.

from js-data.

pdorgambide avatar pdorgambide commented on May 30, 2024

The js-data-dsync (adapter, interface, impl, engine - I dont know the right term) will be independent of an existent storage (firebase, couhcdb) and could enable sync with servers or persistence storages that implements HTTP PATH interface (php, and the new spring sync,).
http://codebrief.com/2013/08/client-sync-for-the-rest-of-us
+1 js-data-dsync

Thanks for yor response, and great job.

from js-data.

jmdobry avatar jmdobry commented on May 30, 2024

I think that this particular set of functionality is out of the scope of js-data.js itself, but there is definitely room for another project that uses js-data to accomplish this. Perhaps when there's a pouchdb/couchdb adapter or GUN adapter, as those projects are already solving the CRTD problem.

Closing this issue because js-data.js itself won't implement this functionality.

from js-data.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.