Coder Social home page Coder Social logo

Comments (5)

radex avatar radex commented on May 22, 2024 2

Is the sync engine API stable enough for such an undertaking?

Probably!

Are docs for implementing new sync engines in the works or would you like me to convert my notes into basic first draft for docs?

Please contribute! :) A lot of people are asking for this

I am planning to use the said engine on react-native possibly using the react-native-firebase project. Anyone know if this would be non trivial to implement with the existing adapters?

Don't know

Would it be better to start a new adapter implementation from scratch or override the LokiJS adapter for example (maybe for supporting offline operations)?

I'm not sure I understand, but I'm not familiar with Firebase. You were asking about synchronization which made me think you want to use LokiJS/SQLite and then add a sync engine, so make HTTP requests and connect it to Watermelon.

But it now seems you're asking about database adapter, which is a different thing. Adding support for a different underlying database is a much more difficult undertaking. There's more API you'd need to support, most notably a way to convert Watermelon queries to the query language of your database. The question is, why do you want to do that? If you're interested in React Native, you'll either lose the biggest benefit of using SQLite (lazy loading), or add ANOTHER layer of abstraction on top of SQLite (again, not familiar with the tech you're talking about).

(Bonus question) Would you use it if I built it? 🚽

Not us (we have a semi-custom backend), but I'm sure a lot of people would be very interested in this

from watermelondb.

radex avatar radex commented on May 22, 2024

@creatorrr hey, any progress here?

from watermelondb.

creatorrr avatar creatorrr commented on May 22, 2024

@radex sorry had been caught up with work. Just started a fork to start the project and will post updates here. In the meantime, you can close this issue if you'd like.

Also, thanks for your comments above, I have decided to write a database adapter instead. Mainly because Firestore's data model stores data as documents in collections and this maps rather neatly with watermelondb's interface unlike relational database engines.

from watermelondb.

radex avatar radex commented on May 22, 2024

OK, thanks! Be sure to let me know if you manage to finish this :)

from watermelondb.

solace avatar solace commented on May 22, 2024

@creatorrr Did you end up completing the adapter?

from watermelondb.

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.