Comments (4)
@andymatuschak Thanks for the alert! Followed the steps with no issues.
from orbit.
Unfortunately, React Native makes this difficult. None of the SQLite native modules support BLOBs. And in fact, the (traditional) Native Modules bridge doesn't support marshaling binary data at all, so we'd have to move to a library which uses the newer JSI bridge, like https://github.com/ospfranco/react-native-quick-sqlite.
I filed an issue about BLOB support: ospfranco/react-native-quick-sqlite#11. It'd probably be a rabbit hole, but we could probably add support ourselves if need be.
Still, all this makes me less enthusiastic about moving in this direction. More work than I want to spend right now.
from orbit.
180-ing here: expo-sqlite
is doctrinaire about where SQLite databases are located, and won't actually permit the "bundle"-style file format anyway. So I added BLOB support to react-native-quick-sqlite
(which should be more performant anyway, since it's JSI and hence should be a much cheaper FFI). Working through the rest now…
from orbit.
Alright, this is now implemented. .orbitStore
is now a flat SQLite file.
@ZanderKasanjian, I think you're the only one using Orbit on your local machine, but I'll note this publicly in case any others will be affected. With these changes, you'll need to do a "full sync" of your Orbit account to your machine; I didn't bother implementing a migrator because there are so few local users. Please:
- Before pulling the changes in 04d4ce0 and later, please
sync
to make sure all your local changes are saved on the server. - Delete your local
.orbitStore
folder (or move it aside) git pull
,yarn install
, andyarn build
in the root.sync
again to a fresh.orbitStore
instance—this will now be a flat SQLite file.- Carry on as usual!
note-sync
should behave as before.
from orbit.
Related Issues (20)
- Filter out deleted tasks when building review queue
- Add /tasks API endpoint
- Query due tasks directly when data store isn’t yet synced HOT 1
- Add validation to Database
- Add options to disable prompt review notifications for specific sources
- Implement SQLite-based image loader for Android
- Project: implement Anki plugin for syncing to/from Orbit
- Consider supporting arbitrary color schemes
- Fix command-line iOS / Mac build workflows on Monterey
- Perform macOS / iOS key commands on key down rather than on key up
- Forgotten questions keep reappearing HOT 1
- Proposal: Intermediate File Format to simplify note-sync syncing HOT 6
- Questions with image attachments and text can overlap HOT 1
- Fall back to alternative fonts when characters are not available in Dr HOT 2
- Inline math expressions often disrupt layout of text
- Consider using react-native-quick-crypto HOT 2
- please compile a binary apk for android HOT 1
- Doing "Delete Prompt" when answer is shown causes the answer of the next card to be shown as well HOT 1
- consumeAccessCode times out when code is invalid
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 orbit.