Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync cache #60

Merged
merged 1 commit into from
Feb 1, 2024
Merged

Sync cache #60

merged 1 commit into from
Feb 1, 2024

Conversation

mxcl
Copy link
Member

@mxcl mxcl commented Jan 23, 2024

Note that the sqlite3 deno library downloads its own sqlite. Instead we should:

  1. sync
  2. install sqlite
  3. have the deno sqlite3 use our sqlite

However there isn’t a way to get it to do that yet. See denodrivers/sqlite3#119

Possibly we could vendor and modify.

Also the cache should “failsafe” and fall back on the pantry in the case of issues with FFI or sqlite or our code.

@coveralls
Copy link

coveralls commented Jan 23, 2024

Pull Request Test Coverage Report for Build 7732868666

  • -71 of 208 (65.87%) changed or added relevant lines in 4 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.8%) to 84.312%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/hooks/useSync.ts 13 19 68.42%
src/plumbing/which.ts 3 13 23.08%
src/hooks/usePantry.ts 19 44 43.18%
src/hooks/useSyncCache.ts 102 132 77.27%
Totals Coverage Status
Change from base Build 7713391169: 0.8%
Covered Lines: 2497
Relevant Lines: 2871

💛 - Coveralls

We had to vendor the deno sqlite3 library as it had no other direct way to allow us to configure the path to the sqlite library at runtime.

To accomplish this we had to modify the sources somewhat also :/
@mxcl mxcl merged commit 99605af into main Feb 1, 2024
10 checks passed
@mxcl mxcl deleted the sync-cache branch February 1, 2024 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants