mscdex / esqlite Goto Github PK
View Code? Open in Web Editor NEWAn SQLite binding for node.js with built-in encryption, focused on simplicity and (async) performance
License: MIT License
An SQLite binding for node.js with built-in encryption, focused on simplicity and (async) performance
License: MIT License
Hello.
I am currently using Electron to develop a cross-platform desktop app.
Until recently, I really liked "better-sqlite3-multiple-ciphers", but it does not allow asynchronous processing, often blocking the renderer process when heavy queries are executed.
So I was searching and found this module.
I tried to install it immediately and ran the command, but the build doesn't seem to work.
What should I do?
npm ERR! code 1
npm ERR! path D:\develop\native-app\Electron\CleePIX\node_modules\esqlite
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node buildcheck.js > buildcheck.gypi && node-gyp rebuild
npm ERR! D:\develop\native-app\Electron\CleePIX\node_modules\buildcheck\lib\index.js:133
npm ERR! throw new Error('Unable to detect compiler type');
npm ERR! ^
npm ERR!
npm ERR! Error: Unable to detect compiler type
npm ERR! at new BuildEnvironment (D:\develop\native-app\Electron\CleePIX\node_modules\buildcheck\lib\index.js:133:15)
npm ERR! at Object.<anonymous> (D:\develop\native-app\Electron\CleePIX\node_modules\esqlite\buildcheck.js:5:12)
npm ERR! at Module._compile (node:internal/modules/cjs/loader:1254:14)
npm ERR! at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
npm ERR! at Module.load (node:internal/modules/cjs/loader:1117:32)
npm ERR! at Module._load (node:internal/modules/cjs/loader:958:12)
npm ERR! at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
npm ERR! at node:internal/main/run_main_module:23:47
npm ERR!
npm ERR! Node.js v18.15.0
OS:Windows 11 Pro
Node version : 18.15.0
Electron version: 23.1.3
esqlite version: latest
Thank you very much.
The registration process itself can be performed, but when the string inserted into the record is checked, it is cut off in the middle and only part of the string is there, or blank characters are inserted. There are also garbled characters.
This is probably an internal character code processing problem.
db.query(`CREATE TABLE tags ( name TEXT NOT NULL )`);
db.query(`INSERT INTO tags( name ) VALUES( ? )`, ["あいうえお"]);
db.query(`INSERT INTO tags( name ) VALUES( ? )`, ["テスト"]);
db.query(`INSERT INTO tags( name ) VALUES( ? )`, ["text test"]);
db.query(`SELECT * FROM tags`, ( _, rows ) => { console.dir(rows, { deps: null }) });
output example
[
{ name: 'テ' },
{ name: 'あ�' },
{ name: 'text test' },
]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.