Closed almas closed 3 years ago
Your best options are to either follow the instructions in https://github.com/JoshuaWise/better-sqlite3/blob/master/docs/compilation.md or to use an npm package that already did that work for you (for example, this one)
Great. First of all thank you very much for giving your time and good luck to your business and your life and everything. better-sqlite3 is a great project. I will try better-sqlite-sqleet today.
I tried compilation instruction. Although some problems occurred. I write a some of them here. This might help and save time of some one later.
{ "scripts": {"preinstall": "npm install better-sqlite3@^7.1.5 --target=11.4.3 --arch=x64 --target-arch=x64 --disturl=https://electronjs.org/headers --runtime=electron --build-from-source=true --sqlite3=\"C:\\Users\\user\\Documents\\Projects\\project\\deps\\sqleet\"", ... } }
Thank you very much Joshua Wise.
Manually compiled with steps above is also worked. But I choose better-sqlite-sqleet. It is very easy and working perfect for me. FYI.
I just found https://github.com/journeyapps/node-sqlcipher module. It seems replacement of sqlite3. Is there anyway to use it with better-sqlite3?
I think that better-sqlite3 is best option to use sqlite3 in node apps. I need to use it with encryption.
I tried a custom source build option followed by this instruction: https://github.com/JoshuaWise/better-sqlite3/blob/master/docs/compilation.md. But not yet had success and it's complicated.
I think that it might be easy if we use module above. How could replace sqlite3 with module above? If now it's not possible then could add a option for this?