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
-[Query serialization](https://github.com/AppThreat/node-sqlite3/wiki/Control-Flow) API
15
-
-[Extension support](https://github.com/AppThreat/node-sqlite3/wiki/API#databaseloadextensionpath-callback), including bundled support for the [json1 extension](https://www.sqlite.org/json1.html)
16
-
- Big test suite
17
-
- Written in modern C++ and tested for memory leaks
18
-
- Bundles SQLite v3.51.0, or you can build using a local SQLite [amalgamation](https://www.sqlite.org/amalgamation.html)
11
+
- Straightforward query and parameter binding interface
-[Query serialization](https://github.com/AppThreat/node-sqlite3/wiki/Control-Flow) API
15
+
-[Extension support](https://github.com/AppThreat/node-sqlite3/wiki/API#databaseloadextensionpath-callback), including bundled support for the [json1 extension](https://www.sqlite.org/json1.html)
16
+
- Big test suite
17
+
- Written in modern C++ and tested for memory leaks
18
+
- Bundles SQLite v3.52.0, or you can build using a local SQLite [amalgamation](https://www.sqlite.org/amalgamation.html)
19
19
20
20
# Installing
21
21
22
22
You can use [`npm`](https://github.com/npm/cli) or [`yarn`](https://github.com/yarnpkg/yarn) to install `sqlite3`:
`@appthreat/sqlite3` v6+ was rewritten to use [Node-API](https://nodejs.org/api/n-api.html) so prebuilt binaries do not need to be built for specific Node versions. `sqlite3` currently builds for both Node-API v3 and v6. Check the [Node-API version matrix](https://nodejs.org/api/n-api.html#node-api-version-matrix) to ensure your Node version supports one of these. The prebuilt binaries should be supported on Node v10+.
35
37
36
38
The module uses [`prebuild-install`](https://github.com/prebuild/prebuild-install) to download the prebuilt binary for your platform, if it exists. These binaries are hosted on GitHub Releases for `sqlite3` versions above 5.0.2, and they are hosted on S3 otherwise. The following targets are currently provided:
37
39
38
-
*`darwin-arm64`
39
-
*`darwin-x64`
40
-
*`linux-arm64`
41
-
*`linux-x64`
42
-
*`linuxmusl-arm64`
43
-
*`linuxmusl-x64`
44
-
*`win32-ia32`
45
-
*`win32-x64`
40
+
-`darwin-arm64`
41
+
-`darwin-x64`
42
+
-`linux-arm64`
43
+
-`linux-x64`
44
+
-`linuxmusl-arm64`
45
+
-`linuxmusl-x64`
46
+
-`win32-ia32`
47
+
-`win32-x64`
46
48
47
49
Unfortunately, [prebuild](https://github.com/prebuild/prebuild/issues/174) cannot differentiate between `armv6` and `armv7`, and instead uses `arm` as the `{arch}`. Until that is fixed, you will still need to install `sqlite3` from [source](#source-install).
48
50
@@ -68,22 +70,22 @@ See the [API documentation](https://github.com/AppThreat/node-sqlite3/wiki/API)
* You must provide the right `--target_arch` flag. `ia32` is needed to target 32bit node-webkit builds, while `x64` will target 64bit node-webkit builds (if available for your platform).
151
+
- You must provide the right `--target_arch` flag. `ia32` is needed to target 32bit node-webkit builds, while `x64` will target 64bit node-webkit builds (if available for your platform).
150
152
151
-
* After the `sqlite3` package is built for node-webkit it cannot run in the vanilla Node.js (and vice versa).
152
-
* For example, `npm test` of the node-webkit's package would fail.
153
+
- After the `sqlite3` package is built for node-webkit it cannot run in the vanilla Node.js (and vice versa).
154
+
- For example, `npm test` of the node-webkit's package would fail.
153
155
154
156
Visit the “[Using Node modules](https://github.com/rogerwang/node-webkit/wiki/Using-Node-modules)” article in the node-webkit's wiki for more details.
0 commit comments