Skip to content

docs: State the goals and non-goals - #788

Merged
krlmlr merged 4 commits into
mainfrom
claude/readme-goals
Nov 10, 2026
Merged

krlmlr merged 4 commits into
mainfrom
claude/readme-goals

Conversation

@krlmlr

@krlmlr krlmlr commented Sep 13, 2026 •

Copy link
Copy Markdown
Member

A reader landing on this README should be able to tell in a few seconds whether RSQLite is what they want, and which parts of their question belong to DBI instead.

Evidence behind each claim:

  • "will never use a system SQLite": the sources and extensions ship in src/ and are compiled into the package; nothing looks for a SQLite on the host.
  • "you should always start by loading DBI, not RSQLite": verbatim from vignettes/RSQLite.Rmd, which is the basis for the non-goal about not defining the interface.
  • "conforms to the specification": the full DBItest suite runs in tests/testthat/test-DBItest.R.
  • "exposes SQLite-specific features": the bundled extension functions enabled by initExtension(), and read-only remote access when configure finds libcurl.
  • "does not keep the pre-DBI API alive": R/deprecated.R plus the NEWS entries deprecating dbGetPreparedQuery(), sqliteBuildTableDefinition() and make.db.names().

Why the consistency bullet is narrow. It promises the same SQLite engine, with the same build options, on every installation, and nothing more. configure probes for libcurl with pkg-config or curl-config, and on a host that has it the build links -lcurl and compiles in the HTTP VFS, which the next bullet advertises; so the build is not free of system libraries, but the SQLite engine is always the one included here, and libcurl is the one system library configure looks for.

Worth knowing, not changed here: the sentence the bullet was paraphrasing is in DESCRIPTION itself ("System libraries will never be consulted because this package relies on static linking for the plugins it includes"), and it has the same problem, two sentences after it describes the optional libcurl-dependent VFS. Fixing DESCRIPTION is a different concern from the README section and is left for a separate change.

One bullet is softer than the others. "Make up for what SQLite does not do" is an inference from the README's own description of SQLite as single-user, light-weight and implementing a subset of SQL 92; it is not a written scope statement anywhere. If you read that as overreach, drop that bullet; the rest stand on explicit text.

One structural change: the README's install instructions were glued to the intro with no heading, so there was nowhere to put a section between them. An ## Installation heading now sits above the existing install text. Nothing else moved.

Only README.Rmd, README.md and index.md change; no R/, no man/. README.md and index.md are rendered from README.Rmd with cynkratemplate's readme_document format, the way CI's re-render step does it, and a second render is byte-identical.

A clean-context review found the factual claims sound; its findings on the generated file and the wording are all fixed, so there are no accepted limitations. #791 is stacked on this pull request.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m

@krlmlr
krlmlr force-pushed the claude/readme-goals branch from b2b5abb to e7d5988 Compare September 13, 2026 13:15
@krlmlr
krlmlr force-pushed the claude/readme-goals branch from e7d5988 to f70c507 Compare September 13, 2026 13:17
@krlmlr
krlmlr added this pull request to stack #789 September 13, 2026 14:22
@krlmlr
krlmlr force-pushed the claude/readme-goals branch 3 times, most recently from de3c290 to 2c273d0 Compare September 13, 2026 14:43
@krlmlr
krlmlr force-pushed the claude/readme-goals branch from 2c273d0 to 8c3783b Compare September 13, 2026 16:33
@krlmlr
krlmlr force-pushed the claude/readme-goals branch from ff1ffca to eda1a66 Compare September 13, 2026 17:00
@krlmlr
krlmlr force-pushed the claude/readme-goals branch from eda1a66 to ebf3b2e Compare September 13, 2026 18:27
@krlmlr
krlmlr force-pushed the claude/readme-goals branch 2 times, most recently from c0ed8ae to f7d2151 Compare September 13, 2026 18:44
@krlmlr
krlmlr force-pushed the claude/readme-goals branch from f7d2151 to 56e6c62 Compare September 13, 2026 19:53
@krlmlr
krlmlr force-pushed the claude/readme-goals branch from 56e6c62 to 80d4d52 Compare September 13, 2026 20:31
Base automatically changed from claude/sembr to main September 13, 2026 21:05
@krlmlr
krlmlr force-pushed the claude/readme-goals branch from 80d4d52 to 93b0863 Compare September 13, 2026 21:05
Scope drawn from the Description field on static linking and the optional read-only HTTP VFS,
the included SQLite sources in src/,
the vignette's notes that no external software is needed and that DBI is the package to load,
the full DBItest run in tests/testthat/test-DBItest.R,
and the deprecated shims in R/deprecated.R.
The installation instructions now sit under their own heading,
so that the new section can follow the introduction.

The consistency bullet says what the package actually does rather than repeating the Description verbatim.
"Never consulting system libraries" is not true as written:
configure probes for libcurl with pkg-config or curl-config,
and when it finds one the build links -lcurl and compiles in the HTTP VFS.
What holds is that the SQLite engine itself is always the one included here,
never one picked up from the system, and the bullet is narrowed to that.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m
@krlmlr
krlmlr force-pushed the claude/readme-goals branch from 93b0863 to b2657bc Compare September 14, 2026 05:16

krlmlr commented Nov 10, 2026

Copy link
Copy Markdown
Member Author

Review of this PR at 9447a87, by a Claude Code reviewer with clean context that read the three changed files against configure, configure.win, src/Makevars, R/, tests/testthat/ and the vignette, and re-rendered README.Rmd with cynkratemplate from its main (0.0.2.9036) the way the render-readme CI action does, and posted nothing itself. Line numbers refer to that commit. "Confirmed" means reproduced by running code.

The factual claims hold up; the findings are about the generated file and wording.

Medium

1. README.md is not what the current readme_document format produces, so CI will rewrite it after the merge. Confirmed: rendering README.Rmd at this commit with cynkratemplate 0.0.2.9036 leaves index.md unchanged but changes two lines of README.md. README.md:34 gains a link on initExtension(), and README.md:46 gains links on dbGetPreparedQuery() and sqliteBuildTableDefinition(); make.db.names() stays unlinked. Suggested fix: re-render with the current cynkratemplate and commit README.md.

Coordinator's note: already resolved. CI's re-render step pushed exactly these two lines as c2cc395 after the reviewed commit.

Low

2. "loadable extensions through initExtension()" describes the function more broadly than it works. By reading: initExtension() only registers one of six bundled extensions (R/initExtension.R:96-98); loading an arbitrary loadable extension is governed by the loadable.extensions argument of dbConnect() (R/dbConnect_SQLiteDriver.R:29-30). Affects README.Rmd:47, README.md:34, index.md:35. Suggested fix: "such as the bundled extension functions enabled by initExtension()".

3. "Behave the same on every installation" is immediately qualified by the next bullet. By reading: README.Rmd:43-48 promises identical behaviour and then lists a feature that exists only when libcurl was found at build time (configure:60-66, sqliteHasHttpVFS()). The text is not wrong, since the second sentence of the bullet names libcurl, but a reader skimming the goals gets two bullets that pull against each other. Suggested fix: scope the claim to the engine, for example "Run the same SQLite engine, with the same build options, on every installation".

4. The PR description is out of date in three places. By reading and partly confirmed: it says "Stacked on #787, which this PR targets", but the base is main and #787 is merged; it says the files were re-rendered with cynkratemplate::render_readme(), which the package's main does not export (its NAMESPACE exports readme_document, use_cynkra_pkgdown and cynkratemplate_example); and "two consecutive renders are byte-identical" no longer holds for the first render, per finding 1. Suggested fix: update the description when fixing finding 1.

Checked and found sound

  • README.Rmd, README.md and index.md carry the identical 28 added lines; README.md and index.md differ only by the generated-file comment, the pre-existing links on README.md:68 and the code-of-conduct footer (confirmed with diff).
  • "Compiling the included SQLite sources ... rather than linking a SQLite from the system": src/Makevars:29 links only vendor/sqlite3/sqlite3.o plus $(CURL_LIBS), and the build options are fixed in src/Makevars:10-24 (by reading).
  • "The only system library configure looks for is libcurl": configure:33-44 probes pkg-config --exists libcurl and then curl-config, nothing else; configure.win does the same (by reading).
  • "Read-only access to remote database files": the VFS returns SQLITE_READONLY from its write, truncate and delete methods (src/vendor/extensions/http.c:108-120) and sqliteRemote() opens with SQLITE_RO (R/httpvfs.R:55) (by reading).
  • "The full DBItest suite": tests/testthat/test-DBItest.R:5-9 calls DBItest::test_all() with a single skip that applies only on R < 4.0. It is skipped on CRAN and when DBItest is not installed, which the sentence does not contradict (by reading).
  • "The vignette tells you to load DBI rather than RSQLite": vignettes/RSQLite.Rmd:20.
  • The three functions named as deprecated shims all still exist and warn: R/deprecated.R:19-22, R/dbGetPreparedQuery_SQLiteConnection_character_data.frame.R:4, R/make.db.names_SQLiteConnection_character.R:9.
  • The DESCRIPTION sentence "System libraries will never be consulted" that the description flags as inaccurate is indeed still there (DESCRIPTION:27-28) and is rightly left to a separate change.

Generated by Claude Code

Say that `initExtension()` enables the bundled extension functions,
since loading arbitrary extensions is governed by `dbConnect()`.
Scope the "same on every installation" goal to the SQLite engine and its build options,
so it no longer pulls against the optional libcurl-dependent HTTP VFS.
README.md and index.md are re-rendered with cynkratemplate.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Hr1rd3gjmufoKCWVDBPCgE
@krlmlr
krlmlr merged commit 98d6d83 into main Nov 10, 2026
8 checks passed
@krlmlr
krlmlr deleted the claude/readme-goals branch November 10, 2026 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants