cee-studio / orca

C Multi-REST API library for Discord, Slack, Reddit, etc.

Home Page:https://cee-studio.github.io/orca/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

replicate better-sqlite3 in mujs

mlite opened this issue · comments

commented

Let's do this wrapper first. It will significantly improve the development productivity for features that need db.

commented

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.

commented

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
commented

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!