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.

Assessment

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

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.

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

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

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.

More from sql-js/sql.js

All issues in sql-js/sql.js

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.