Skip to content

docs: Say which classes are virtual instead of all of them - #798

Merged
krlmlr merged 2 commits into
mainfrom
claude/classes-not-all-virtual
Nov 29, 2026
Merged

krlmlr merged 2 commits into
mainfrom
claude/classes-not-all-virtual

Conversation

@krlmlr

@krlmlr krlmlr commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

The docs said that all classes in DBI are virtual. isVirtualClass() confirms that only DBIObject, DBIDriver, DBIConnection, DBIResult and DBIResultArrow are, while Id, SQL, DBIConnector, AnsiConnection and DBIResultArrowDefault are concrete.

  • R/DBI-package.R and DESCRIPTION now say "The base classes for drivers, connections and results in this package are virtual and need to be extended by the various R/DBMS implementations". This excludes the exported concrete DBIResultArrowDefault. man/DBI-package.Rd is regenerated with devtools::document().
  • README.Rmd now says "These classes are virtual", which refers to the four classes listed just above it. I edited README.md and index.md by hand to match because cynkratemplate was not available to render them in this session. The rendered change is that one word, but rendering the README once more will confirm it.
  • vignettes/spec.md and vignettes/spec.html do not come from DBItest for this paragraph. tests/testthat/helper-dev.R rebuilds them from man/DBI-package.Rd when tests run locally, so the new wording got into the specification through that regeneration and nothing needs to change in DBItest. The diff there is limited to this one paragraph.

devtools::test() passes locally: 0 failures, 9882 passes and 60 skips.

Closes #782.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Hr1rd3s7NRVkLyg3an422b

The package help, the DESCRIPTION, the README and the specification said that all classes in DBI are virtual.
`Id`, `SQL`, `DBIConnector`, `AnsiConnection` and `DBIResultArrowDefault` are concrete,
so the sentence now names the driver, connection and result classes,
and the README refers to the classes it just listed.

Closes #782.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Hr1rd3s7NRVkLyg3an422b
`DBIResultArrowDefault` is an exported result class that is concrete,
so the package help and the DESCRIPTION now say that the base classes for drivers, connections and results are virtual.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Hr1rd3s7NRVkLyg3an422b
@krlmlr
krlmlr marked this pull request as ready for review November 29, 2026 11:07
@krlmlr
krlmlr merged commit 225cff5 into main Nov 29, 2026
9 checks passed
@krlmlr
krlmlr deleted the claude/classes-not-all-virtual branch November 29, 2026 15:24
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.

docs: "All classes are virtual" overstates it

2 participants