fritx / cross-sqlcipher Goto Github PK
View Code? Open in Web Editor NEWCross-platform encrypted sqlite3
Home Page: https://www.npmjs.com/package/cross-sqlcipher
Cross-platform encrypted sqlite3
Home Page: https://www.npmjs.com/package/cross-sqlcipher
I've built an electron app that creates a database using cross-sqlcipher.
I package the application using electron-builder, creating a windows installer.
The application runs normall and creates a functioning cipher database on about half the windows machines in my office, the other half gets the error below. Is there some dependency those computers may be missing?
Looks like node-sqlite3 has a wrapper module called node-sqlite which provides promises. However, it seems the hard-code the sqlite3 module. Since cross-sqlcipher is ultimately based on node-sqlite3, maybe some of this effort could be re-used?
I have Windows 7 x64, Visual Studio 2013, NW.js 0.12.3. After successful compilation I run the app and see the following error:
Uncaught Error: %1 is not a valid Win32 application.
D:\Node\nw-test\node_modules\win-sqlcipher\node_modules\sqlite3\lib\binding\node-webkit-v0.12.3-win32-x64\node_sqlite3.node
On Ubuntu works fine.
In order to communicate the way this module should be used, it would probably be best to track the major version number of sqlite3 and increment the patch number independently - unless you intend to make breaking changes within the way a common user will require and use the module
Code
db.run('INSERT INTO foo ...', function (err) { console.log(err, this.lastID) })
prints null undefined
Using Electron 1.8
What am I doing wrong?
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.