replicate better-sqlite3 in mujs
mlite opened this issue · comments
Let's do this wrapper first. It will significantly improve the development productivity for features that need db.
The test works well. Can you make a repo just for this wrapper? The wrapper will be used for other applications.
We use the same method as cee-util to download mujs for this repo.
I want to see code coverage for the test.
Sure, will we be downloading mujs
from orca?
let's make mujs a standalone repo with the current mujs code, and download from this repo.
I think we can name this repo as mujs-sqlite3
- mujs // will be downloaded like cee-utils
js_sqlite3.h
js_sqlite3.c
- test // the folder to host test code
BTW, please also wrap transaction. we can just wrap
sqlite3_exec(db, "BEGIN TRANSACTION;", NULL, NULL, NULL); --> db.begin_transaction();
sqlite3_exec(db, "END TRANSACTION;", NULL, NULL, NULL); --> db.end_transaction();
Ok got it!