margelo / margelo/react-native-nitro-sqlite

Support sqlite3_update_hook

Open
#31 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

triage:needs-reproduction
Dominant language
C
Stars
565
Forks
53
Avg merge
1d 21h
Merged PRs (30d)
18

Description

We'd like to create a change feed. Whilst some ORM's support this within their own layers e.g. TypeORM Subscribers, we have some complex raw insert/update queries which it doesn't cover easily.

Would it be possible to expose SQLite's sqlite3_update_hook to attach a callback to cover this?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no repository files or tests. Start with SQLite's sqlite3_update_hook documentation, then locate the native SQLite integration and the React Native-facing API. Done means callers can register a callback that receives the requested SQLite update events for raw inserts and updates.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, react-native, sqlite
Domain
databases, mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.