Repository navigation
docs: Name the real driver generators, qualified with their packages - #760
Merged
Merged
Conversation
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
3 of 7 tasks
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.
The
DBIDriverbullet under "Class structure" said that generator functions instantiate the driver objects "likeRSQLite(),RPostgreSQL(),RMySQL()". None of those three is a function. The generators areSQLite(),Postgres()andMariaDB(), 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()andRMariaDB::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 functionSQLite()— no link; an unqualified name is only looked up in this package's own topic index, and another backend's generator is not in itRSQLite::SQLite()— resolves tohttps://rdrr.io/pkg/RSQLite/man/SQLite.htmlSo 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.mdandindex.mdare regenerated fromREADME.Rmd. The regeneratedindex.mdkeeps 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