Skip to content

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

Merged
krlmlr merged 8 commits into
mainfrom
claude/readme-goals
Nov 28, 2026
Merged

krlmlr merged 8 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 DBI is the thing they want. The non-goals are the half that saves time, because they point people somewhere else rather than leaving them to file an issue asking for it.

Every bullet is drawn from something already in the repository, not invented:

  • "All classes here are virtual" — the README's own Class structure section.
  • "DBItest holds the test cases, and the specification vignette is derived from them" — DBI's roxygen uses @inheritSection DBItest::spec_*, and vignette("spec") is assembled by tests/testthat/helper-dev.R.
  • "packages that translate R code into SQL, such as dbplyr, build on top of DBI" — vignettes/DBI.Rmd already positions dbplyr that way.
  • "Parts of the interface, transaction management among them, are optional" — the README's operation list marks it "(optional)".
  • "imports nothing and depends only on methods" — DESCRIPTION.

Two claims were considered and dropped for lack of support: connection pooling and credential management as non-goals (nothing states that anywhere — pool appears only in Config/Needs/website), and "hiding SQL dialect differences", which would have been muddled given DBI does supply ANSI() and the quoting generics.

Placed after the introduction and before the class structure. By hand, only README.Rmd, README.md and index.md change — no R/. The 40 .Rd files also in the diff are not hand-edited: CI roxygenises and commits the regenerated documentation itself, in the chore: Auto-update from GitHub Actions commit on top. Rendered twice, byte-identical.

Stacked on #751, which this PR targets.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m


Generated by Claude Code

@krlmlr
krlmlr force-pushed the claude/readme-goals branch from 5f3f9fb to 94d21ff Compare September 13, 2026 13:18
@krlmlr
krlmlr added this pull request to stack #753 September 13, 2026 14:07
Comment thread index.md Outdated
so that calling code can rely on documented behavior rather than on the quirks of one backend.
- Derive as much as possible from a small set of methods a backend has to implement,
and supply the rest as defaults, such as `dbGetQuery()`, `dbReadTable()`, `dbWriteTable()` and `dbWithTransaction()`.
- Stay cheap to depend on: DBI imports nothing and depends only on **methods** and R \>= 3.0.0.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'd need to really test on R 3.0.0 to assert this claim, just drop it.

@krlmlr
krlmlr force-pushed the claude/readme-goals branch 4 times, most recently from d7e010e to c2934c8 Compare September 13, 2026 16:28
@krlmlr
krlmlr force-pushed the claude/readme-goals branch from 19beed8 to 1dc07f2 Compare September 13, 2026 16:55
@krlmlr
krlmlr force-pushed the claude/readme-goals branch from 1dc07f2 to 63a5779 Compare September 13, 2026 18:24
@krlmlr
krlmlr force-pushed the claude/readme-goals branch 2 times, most recently from 2de9546 to 2e7c283 Compare September 13, 2026 18:44
@krlmlr
krlmlr force-pushed the claude/readme-goals branch 3 times, most recently from cc96139 to 7590747 Compare September 13, 2026 20:30
Base automatically changed from claude/sembr to main September 13, 2026 20:40
@krlmlr
krlmlr force-pushed the claude/readme-goals branch 2 times, most recently from b3dd213 to 94d9041 Compare September 13, 2026 21:42
Scope drawn from DESCRIPTION (no Imports, Depends on methods only),
the README's own list of supported operations including the optional
transaction management, the specification vignette's abstract on the
division of labor with DBItest, the backend implementation guide, the
virtual classes documented under "Class structure", and the default
methods in R/ that build on the small set a backend must supply.

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 94d9041 to ccb9456 Compare September 14, 2026 05:35
@krlmlr krlmlr mentioned this pull request Nov 28, 2026
3 of 7 tasks

krlmlr commented Nov 28, 2026

Copy link
Copy Markdown
Member Author

Accepted limitations

  • README.Rmd:70: "imports nothing" is loose. DESCRIPTION has no Imports:, but NAMESPACE has import(methods). The sentence's own "depends only on methods" covers that. Relevance: low. Confidence: high.
  • README.Rmd:69: "dbWriteTable() belongs in that list too" reads oddly next to "supply the rest as defaults". It is accurate, though: the only default method, the Id method, forwards to the backend's method. Relevance: low. Confidence: high.

The clean review also found a Medium issue: "All classes here are virtual" is false, since Id, SQL, DBIConnector and AnsiConnection are concrete. It is fixed in 1c910f8. The same claim already exists elsewhere on main, which is a separate issue.


Generated by Claude Code

@krlmlr
krlmlr merged commit d9c17ab into main Nov 28, 2026
1 check passed
@krlmlr
krlmlr deleted the claude/readme-goals branch November 28, 2026 06:51
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