You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This uses the npm_config_python config, so values in .npmrc will be honoured:
126
+
The default sqlite file header is "SQLite format 3". You can specify a different magic, though this will make standard tools and libraries unable to work with your files.
Note that the magic *must* be exactly 15 characters long (16 bytes including null terminator).
147
133
148
134
## Building for node-webkit
149
135
150
136
Because of ABI differences, `sqlite3` must be built in a custom to be used with [node-webkit](https://github.com/rogerwang/node-webkit).
This command internally calls out to [`node-pre-gyp`](https://github.com/mapbox/node-pre-gyp) which itself calls out to [`nw-gyp`](https://github.com/rogerwang/nw-gyp) when the `--runtime=node-webkit` option is passed.
164
150
165
-
You can also run this command from within a `node-sqlite3` checkout:
151
+
You can also run this command from within a `sqlite3` checkout:
@@ -179,19 +165,17 @@ Visit the “[Using Node modules](https://github.com/rogerwang/node-webkit/wiki/
179
165
180
166
## Building for SQLCipher
181
167
182
-
For instructions for building sqlcipher see
183
-
[Building SQLCipher for node.js](https://coolaj86.com/articles/building-sqlcipher-for-node-js-on-raspberry-pi-2/)
168
+
For instructions on building SQLCipher, see [Building SQLCipher for Node.js](https://coolaj86.com/articles/building-sqlcipher-for-node-js-on-raspberry-pi-2/). Alternatively, you can install it with your local package manager.
184
169
185
-
To run node-sqlite3 against sqlcipher you need to compile from source by passing build options like:
170
+
To run against SQLCipher, you need to compile`sqlite3` from source by passing build options like:
Running sqlite3 through [electron-rebuild](https://github.com/electron/electron-rebuild) does not preserve the sqlcipher extension, so some additional flags are needed to make this build Electron compatible. Your `npm install sqlite3 --build-from-source` command needs these additional flags (be sure to replace the target version with the current Electron version you are working with):
207
+
Running `sqlite3` through [electron-rebuild](https://github.com/electron/electron-rebuild) does not preserve the SQLCipher extension, so some additional flags are needed to make this build Electron compatible. Your `npm install sqlite3 --build-from-source` command needs these additional flags (be sure to replace the target version with the current Electron version you are working with):
0 commit comments