Comments (5)
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.
@creatorrr hey, any progress here?
from watermelondb.
@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.
OK, thanks! Be sure to let me know if you manage to finish this :)
from watermelondb.
@creatorrr Did you end up completing the adapter?
from watermelondb.
Related Issues (20)
- Is it possible to execute multiple queries in a single statement ? HOT 1
- Module '"@nozbe/watermelondb/decorators"' has no exported member 'experimentalFailsafe'.
- "Invariant Violation: Calling synchronous methods on native modules is not supported in Chrome"
- SyncPullStrategy should associate with table instead of sync
- TimeStamp HOT 2
- Local Storage API - Add support for db.localstorage.key() to fetch all key at runtime
- [question] How to install extensions
- Web Bundling failed
- TypeError: Super expression must either be null or a function HOT 2
- Can we get current migration versions like fromVersion and toVersion
- Different between using `@lazy` decorator vs getter?
- Support for Expo SDK50 HOT 1
- Error: [withObservable] Value passed to withObservables doesn't appear to be observable. See console for details
- Observer with pagination not working
- Unable to resolve module ./internal/operators/timeout from E:\eventual-mvp-app\node_modules\rxjs\dist\cjs\index.js:
- Installation guide HOT 1
- Sync pull HOT 1
- Unable to run between query Because number field in schema treated as string in SQLite DB HOT 2
- Unable to use sortBy option for joining table with use of clause HOT 1
- Unable to push sync TypeError: Cannot read property 'type' of undefined at _setRaw HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from watermelondb.