Skip to content

docs: Name the real driver generators, qualified with their packages - #760

Merged
krlmlr merged 1 commit into
mainfrom
claude/readme-driver-generators
Nov 28, 2026
Merged

krlmlr merged 1 commit into
mainfrom
claude/readme-driver-generators

Conversation

@krlmlr

@krlmlr krlmlr commented Sep 26, 2026

Copy link
Copy Markdown
Member

The DBIDriver bullet under "Class structure" said that generator functions instantiate the driver objects "like RSQLite(), RPostgreSQL(), RMySQL()". None of those three is a function. The generators are SQLite(), Postgres() and MariaDB(), and two of the packages named are not the ones this README lists as backends either: RPostgreSQL and RMySQL are the legacy drivers, while the backend list at the top points at RPostgres and RMariaDB.

The bullet now reads RSQLite::SQLite(), RPostgres::Postgres() and RMariaDB::MariaDB(), matching the backends this README already recommends.

The qualification is also what makes the reference resolvable, which is worth recording because it came up while assessing cynkra/cynkratemplate#135 (autolinking inline code in README prose). Checked against downlit 0.4.5 with this package's own topic index loaded:

  • RSQLite() — no link, and no such function
  • SQLite() — no link; an unqualified name is only looked up in this package's own topic index, and another backend's generator is not in it
  • RSQLite::SQLite() — resolves to https://rdrr.io/pkg/RSQLite/man/SQLite.html

So once #135 lands these three become links; until then they are simply correct. This PR does not depend on #135 and is worth taking on its own.

README.md and index.md are regenerated from README.Rmd. The regenerated index.md keeps its <!-- Generated by cynkratemplate: do not edit by hand --> banner: the cynkratemplate build available here (0.0.2.9028) omits that line, which is a version skew rather than an intended change, so it is preserved rather than dropped.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m


Generated by Claude Code

The `DBIDriver` bullet said that generator functions instantiate the driver
objects "like `RSQLite()`, `RPostgreSQL()`, `RMySQL()`".
None of those three is a function.
The generators are `SQLite()`, `Postgres()` and `MariaDB()`,
and the packages named are not the ones this README lists as backends either:
RPostgreSQL and RMySQL are the legacy drivers,
while the list above points at RPostgres and RMariaDB.

Naming them `pkg::fun()` fixes the reference and is also what makes it
resolvable: `downlit::autolink_url()` maps `RSQLite::SQLite()` to the RSQLite
documentation, while both `RSQLite()` and a bare `SQLite()` resolve to nothing --
an unqualified name is only looked up in this package's own topic index,
and the generators of other backends are not in it.
So once cynkra/cynkratemplate#135 lands and prose code is autolinked,
these three become links; until then they are merely correct.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m
@krlmlr
krlmlr added this pull request to stack #762 September 26, 2026 18:53
@krlmlr krlmlr mentioned this pull request Nov 28, 2026
3 of 7 tasks
@krlmlr
krlmlr merged commit 604cb1f into main Nov 28, 2026
6 checks passed
@krlmlr
krlmlr deleted the claude/readme-driver-generators branch November 28, 2026 06:50
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.

1 participant