feat(pkg): add compat.sqlite3@3.45.3 — SQLite C amalgamation (most widely deployed 3.45.x line) - #190
Merged
Merged
Conversation
…dely deployed 3.45.x line) - Shape A (C-source compat): compile the single sqlite3.c amalgamation into a lib, expose sqlite3.h/sqlite3ext.h via include_dirs; shell.c (interactive CLI, needs editline/readline) stays out. - Version 3.45.3 = final maintenance release of the most widely deployed SQLite series (Ubuntu 24.04 LTS ships 3.45.1; CPython 3.11/3.12/3.13 installers ship 3.45.1/3.45.3/3.45.3), chosen over newer series per user request (widely-used, not latest). - GLOBAL = sqlite.org amalgamation zip (sha256 verified twice); no CN mirror (plain-string url fallback — the GitHub sqlite/sqlite mirror does not carry the generated sqlite3.c). - Consumer member tests/examples/sqlite3 asserts sqlite3_libversion()==3.45.3 and exercises open/create/insert/prepared-query end to end; verified cold with the CI-pinned mcpp 2026.8.8.2 (test result ok, 1 passed). - Design doc covers shape decision, version rationale, multi-version support plan (one mcpp block, xpm rows only).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
新增
compat.sqlite3—— SQLite 数据库引擎本体,C 源码 compat(形态 A),用户#include <sqlite3.h>开箱即用。版本:3.45.3(部署最广,非最新)
按需求选择广泛使用版本:3.45.x 是当前部署面最广的版本线
形态
sqlite3.c进 lib;shell.c(CLI,依赖 editline/readline)不编include_dirs = {"*"}暴露sqlite3.h/sqlite3ext.h;amalgamation 开箱即编,无需 defineSQLITE_ENABLE_*),当前 feature 表只能门控 sources、不能携带 define(同 compat.eigen 结论)镜像
https://sqlite.org/2024/sqlite-amalgamation-3450300.zip(sha256 两次计算一致:ea170e73…)sqlite/sqlite镜像仓不含生成的sqlite3.c);无mcpp-res写权限 → 纯字符串 url 回退(先例:compat.hiredis / compat.spdlog)验证(本地,CI 同版 mcpp 2026.8.8.2)
tests/examples/sqlite3断言sqlite3_libversion()=="3.45.3",并走 open(:memory:) → exec 建表/插入 → 预编译语句查询 全链路mcpp test -p sqlite3:test result ok. 1 passed; 0 failed(冷状态,自动装 llvm@20.1.7)check_mirror_urls/check_package_name/ 全仓check_cross_package_refs文档
compat.sqlite3.agents/docs/2026-08-09-add-sqlite3-plan.md:形态判定、版本依据、多版本支持方案(单 mcpp 块 + xpm 行即可)CI 预期
sqlite3成员并通过