sql-js / sql-js/sql.js

Feature Request: Integrate bindings for sqlite3 api UPDATE HOOK

Open
#599 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
13.7k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

For reactive queries i would like to be able to run a callback immediately a table change in my sqlite db using update hook. i tried using create_function + triggers but that doesn't seem to work either

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

Start by reviewing the existing JavaScript bindings for SQLite APIs and the sqlite3 UPDATE HOOK, then compare them with the reported create_function and trigger approach. Done means exposing a usable callback for table changes and demonstrating that it works for reactive queries, but the issue does not name files or tests to guide implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, sqlite
Domain
database
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.