Skip to content

Commit 12bf1a2

Browse files
committed
docs: fix url
1 parent 906e071 commit 12bf1a2

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,10 @@ const { run, changes, lastInsertRowId, close } = await initSQLite(
6161

6262
### OPFS
6363

64-
Store data in [OPFS](https://developer.mozilla.org/en-US/docs/Web/API/File_System_API/Origin_private_file_system) through [FileSystemSyncAccessHandle](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemSyncAccessHandle), use `OPFSCoopSyncVFS` with `wa-sqlite.wasm`, smaller and faster all other persist storages
64+
Store data in [OPFS](https://developer.mozilla.org/en-US/docs/Web/API/File_System_API/Origin_private_file_system) through [FileSystemSyncAccessHandle](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemSyncAccessHandle), use `OPFSCoopSyncVFS` with `wa-sqlite.wasm`, smaller and faster all other persist storages. **MUST RUN IN WEB WORKER!**
6565

6666
[minimal OPFS backend browser version](https://caniuse.com/mdn-api_filesystemsyncaccesshandle)
6767

68-
**MUST RUN IN WEB WORKER**
69-
7068
```ts
7169
import { initSQLite, isOpfsSupported } from '@subframe7536/sqlite-wasm'
7270
import { useOpfsStorage } from '@subframe7536/sqlite-wasm/opfs'
@@ -95,7 +93,7 @@ import { initSQLite, isOpfsSupported } from '@subframe7536/sqlite-wasm'
9593
import { useFsHandleStorage } from '@subframe7536/sqlite-wasm/fs-handle'
9694

9795
// optional url
98-
const url = 'https://cdn.jsdelivr.net/npm/@subframe7536/sqlite-wasm@0.5.0/dist/wa-sqlite.wasm'
96+
const url = 'https://cdn.jsdelivr.net/npm/@subframe7536/sqlite-wasm@0.5.0/dist/wa-sqlite-async.wasm'
9997

10098
// device's local file
10199
const root = await window.showDirectoryPicker()

src/vfs/fs-handle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export { OPFSAnyContextVFS } from './class/OPFSAnyContextVFS'
1919
* import { useFsHandleStorage } from '@subframe7536/sqlite-wasm/fs-handle'
2020
*
2121
* // optional url
22-
* const url = 'https://cdn.jsdelivr.net/npm/@subframe7536/sqlite-wasm@0.5.0/dist/wa-sqlite.wasm'
22+
* const url = 'https://cdn.jsdelivr.net/npm/@subframe7536/sqlite-wasm@0.5.0/dist/wa-sqlite-async.wasm'
2323
*
2424
* // device's local file
2525
* const root = await window.showDirectoryPicker()

0 commit comments

Comments
 (0)