@ai-ecoverse/wasm-sqlite3

中文文档
3.54.1-1发布于 2026/10/24blessing零依赖构建来源已验证近 30 天下载 4946

The sqlite3 command-line shell for SQLite databases.

原始使用文档

@ai-ecoverse/wasm-sqlite3

SQLite 3.54.1 command-line shell (sqlite3.c + shell.c amalgamation) linked for slicc's wasm realm.

pnpm add -g @ai-ecoverse/wasm-sqlite3
sqlite3 :memory: "SELECT sqlite_version();"

Built without WAL (SQLITE_OMIT_WAL): there is no shared memory in the wasm realm. PRAGMA journal_mode=WAL keeps the rollback journal and answers delete, so databases that ask for WAL keep working. Up to 3.54.0-1 the switch went through and the file then failed to open (disk I/O error).

A WAL-format database made on a host (any file a host app or host sqlite3 switched to WAL) can't be opened here, read-write or -readonly: it fails with file is not a database (26), which is not corruption. Switch it back on the host before copying it in:

sqlite3 file.db 'pragma journal_mode=delete'

Several processes and tabs on one database

SQLite's file locks work between processes: two sqlite3 processes, or sqlite3 and wasix-python's sqlite3 module, on one database exclude each other. A writer that finds the database locked gets database is locked (rc 1 in the shell, unless you set .timeout), and the holder's commit keeps its rows. That needs slicc-kernel 1.100.0 or later (homescoop#513; wasix-python 3.14.2-22 or later on the Python side).

Across browser tabs, the locks exclude since slicc-kernel 1.119.0 (slicc-kernel#944), what's written under them is coherent in the other tab since 1.120.1 (slicc-kernel#949), and opens no longer fail with unable to open database file since 1.122.3 (slicc-kernel#950). So two tabs on one database are safe on slicc-kernel 1.122.3 or later.

On older kernels, use one process per database at a time: concurrent writers can lose committed updates (slicc-kernel#665), and two tabs can lose or corrupt what the other wrote.

The prompt

The interactive prompt is SQLite 3.54's new one (SQLite-3.54 memory-> , naming the open database). Set SQLITE_PS1='sqlite> ' for the old prompt.

版本与发布记录

@ai-ecoverse/wasm-sqlite3 共发布 10 个版本,首次发布于 2026/09/28;过去 12 个月发布了 10 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
3.54.1-1latest2026/10/2413 天前
3.54.0-82026/10/2215 天前
3.54.0-72026/10/2215 天前
3.54.0-62026/10/1918 天前
3.54.0-52026/10/1720 天前
3.54.0-42026/10/1621 天前

关于 @ai-ecoverse/wasm-sqlite3 的常见问题

@ai-ecoverse/wasm-sqlite3 是什么?

The sqlite3 command-line shell for SQLite databases.

如何安装 @ai-ecoverse/wasm-sqlite3?

在项目目录运行 npm install @ai-ecoverse/wasm-sqlite3,或使用 pnpm add / yarn add / bun add。

@ai-ecoverse/wasm-sqlite3 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/ai-ecoverse__wasm-sqlite3 是否存在。

@ai-ecoverse/wasm-sqlite3 可以商用吗?

@ai-ecoverse/wasm-sqlite3 使用 blessing 许可。声明的许可为 blessing,请阅读许可原文确认使用条件。以上为概括,不构成法律意见,请以许可原文为准。

@ai-ecoverse/wasm-sqlite3 的下载量有多少?

根据 npm 官方下载统计,@ai-ecoverse/wasm-sqlite3 在 2026/10/05 – 2026/11/03 这 30 天内被下载 4,946 次,日均约 165 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@ai-ecoverse/wasm-sqlite3 还在维护吗?

最新版本 3.54.1-1 发布于 2026/10/24(13 天前);至今共发布 10 个版本,其中过去 12 个月发布了 10 个;首次发布于 2026/09/28。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。