GithubHelp home page GithubHelp logo

Comments (4)

ZanderKasanjian avatar ZanderKasanjian commented on July 19, 2024 1

@andymatuschak Thanks for the alert! Followed the steps with no issues.

from orbit.

andymatuschak avatar andymatuschak commented on July 19, 2024

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.

andymatuschak avatar andymatuschak commented on July 19, 2024

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.

andymatuschak avatar andymatuschak commented on July 19, 2024

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:

  1. Before pulling the changes in 04d4ce0 and later, please sync to make sure all your local changes are saved on the server.
  2. Delete your local .orbitStore folder (or move it aside)
  3. git pull, yarn install, and yarn build in the root.
  4. sync again to a fresh .orbitStore instance—this will now be a flat SQLite file.
  5. Carry on as usual! note-sync should behave as before.

from orbit.

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.