Skip to content

Commit 43fe10c

Browse files
committed
chore(fmt)
1 parent eb65192 commit 43fe10c

2 files changed

Lines changed: 27 additions & 27 deletions

File tree

doc/library-comparison.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -108,29 +108,29 @@ _The original asynchronous SQLite binding for Node.js, [unmaintained since Decem
108108

109109
## Feature matrix
110110

111-
| Feature | @photostructure/sqlite | node:sqlite | better-sqlite3 | sqlite3 |
112-
| ------------------------ | ---------------------- | ------------------------------------------------- | ---------------- | ------------- |
113-
| **API Compatibility** | node:sqlite | - | Custom | Custom |
114-
| **SQLite Version** | Independent | Tied to Node.js release | Independent | Independent |
115-
| **Min Node.js Version** | 20.0.0 | 22.5.0 | 14.0.0 | 10.0.0 |
116-
| **Experimental Flag** | ✅ Never needed | ⚠️ Required on 22.5–22.12; not needed since 22.13 | ✅ Not needed | ✅ Not needed |
117-
| **Synchronous API** |||||
118-
| **Asynchronous API** |||||
119-
| **TypeScript Types** | ✅ Built-in | ✅ Built-in | ✅ Via @types | ✅ Via @types |
120-
| **Custom Functions** |||||
121-
| **Aggregate Functions** |||||
122-
| **Window Functions** |||||
123-
| **Sessions/Changesets** |||||
124-
| **Backup API** ||| ✅ Different API ||
125-
| **Extension Loading** |||||
126-
| **Worker Threads** |||| ⚠️ Limited |
127-
| **FTS5** |||||
128-
| **JSON Functions** |||||
129-
| **R\*Tree** |||||
111+
| Feature | @photostructure/sqlite | node:sqlite | better-sqlite3 | sqlite3 |
112+
| ------------------------ | ---------------------- | ------------------------------------------------- | --------------------- | --------------------- |
113+
| **API Compatibility** | node:sqlite | - | Custom | Custom |
114+
| **SQLite Version** | Independent | Tied to Node.js release | Independent | Independent |
115+
| **Min Node.js Version** | 20.0.0 | 22.5.0 | 14.0.0 | 10.0.0 |
116+
| **Experimental Flag** | ✅ Never needed | ⚠️ Required on 22.5–22.12; not needed since 22.13 | ✅ Not needed | ✅ Not needed |
117+
| **Synchronous API** ||| | |
118+
| **Asynchronous API** ||| | |
119+
| **TypeScript Types** | ✅ Built-in | ✅ Built-in | ✅ Via @types | ✅ Via @types |
120+
| **Custom Functions** ||| | |
121+
| **Aggregate Functions** ||| | |
122+
| **Window Functions** ||| | |
123+
| **Sessions/Changesets** ||| | |
124+
| **Backup API** ||| ✅ Different API | |
125+
| **Extension Loading** ||| | |
126+
| **Worker Threads** ||| | ⚠️ Limited |
127+
| **FTS5** ||| | |
128+
| **JSON Functions** ||| | |
129+
| **R\*Tree** ||| | |
130130
| **Prebuild Strategy** | Bundled in npm | N/A (built-in) | Downloaded on install | Downloaded on install |
131-
| **Node-API** || N/A | ❌ V8-specific ||
132-
| **Disposable Interface** | ✅ Native C++ | ✅ Native C++ |||
133-
| **node_modules Size** | ~28MB (all prebuilds) | 0 (built-in) | ~14MB (with deps) | ~15MB (with deps) |
131+
| **Node-API** || N/A | ❌ V8-specific | |
132+
| **Disposable Interface** | ✅ Native C++ | ✅ Native C++ | | |
133+
| **node_modules Size** | ~28MB (all prebuilds) | 0 (built-in) | ~14MB (with deps) | ~15MB (with deps) |
134134

135135
## Performance comparison
136136

doc/migrating-from-node-sqlite.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ All your existing code will work exactly the same.
3333
- **node:sqlite**: Available in Node.js 22.5.0+. See version details below.
3434
- **@photostructure/sqlite**: Works with Node.js 20.0.0 or higher, no flag ever needed
3535

36-
| Node.js version | `node:sqlite` status |
37-
| --- | --- |
38-
| 22.5.0–22.12.x | Requires `--experimental-sqlite` flag |
39-
| 22.13.0–25.6.x | Works without flag, prints ExperimentalWarning |
40-
| 25.7.0+ | Release Candidate (Stability: 1.2), no warning |
36+
| Node.js version | `node:sqlite` status |
37+
| --------------- | ---------------------------------------------- |
38+
| 22.5.0–22.12.x | Requires `--experimental-sqlite` flag |
39+
| 22.13.0–25.6.x | Works without flag, prints ExperimentalWarning |
40+
| 25.7.0+ | Release Candidate (Stability: 1.2), no warning |
4141

4242
```bash
4343
# node:sqlite on Node.js 22.5.0–22.12.x:

0 commit comments

Comments
 (0)