capacitor-community / capacitor-community/sqlite

feat: native-side access

Open
#658 0 comments 0 reactions 0 assignees View on GitHub
feature needs: triage
Dominant language
Swift
Stars
661
Forks
158
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe:**
Nope, pure functionality addition.

**Describe the solution you'd like:**
I'd love to be able to access the "implementation"-API surface area from Swift/Java/Kotlin/Etc. My use case is building a native plugin that interacts with the same SQLite database as the JS side. Specifically, I want to scribble down location tracking data from the native side, so I'm not dependent on the JS layer doing this (and getting shut down or whatever).

**Describe alternatives you've considered:**
I've built this as a JS process, but it seems like my background processes constantly get shut down for one reason or another, and that's resulting in missed tracking points.

**Additional context:**
I was thinking of turning these objects into singletons, so they can be easily grabbed from elsewhere in the application.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.