Repository navigation
Conversation
The `dbConnect()` generic now also keeps the arguments in `...` that DBI itself needs, under their own names, in the `.dbi` slot of the returned connection. The list of these names is empty for now; future DBI-level settings, such as lazy Arrow fetching (#783), are added to it. Only these arguments are evaluated, all others are left alone, and all arguments are still passed on to the method. Capturing never fails: an argument that fails to evaluate is skipped. For a connection created from a `DBIConnector`, the arguments stored in the connector are captured as well, alongside the driver that the connector wraps, and arguments passed to `dbConnect()` win over them. `...names()` and `...elt()` require R 4.1.0, so the package now depends on R (>= 4.1.0). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hr1rd6RgjpQxckjWTEReje
Question: How do DBI-level arguments get past backends, and how are they named?Moved from #794. The generic passes every argument on to the backend's method, and only afterwards captures the arguments named in
Kirill decides. If nobody decides, arguments are passed through and no name is reserved; this only matters once the first DBI-level argument is added. Generated by Claude Code |
Question: In nested
|
Question: Warn when a DBI-level argument fails to evaluate?Moved from #794. In
Kirill decides. If nobody decides, the argument is dropped silently. Generated by Claude Code |
Clean review, round 1 (abf8b2f)Scope: the capture of DBI-level arguments, restored on top of #794 (diff against a9659a1). No High findings. Medium
Low
Checked and correct: other arguments are never forced; an argument the method forced is not evaluated again; missing, empty and Not checked: R 4.1 (not installed; Generated by Claude Code |
Question: Should a clone made with
|
…nd `conn` Document that a DBI-level argument the method has not forced is evaluated by DBI after the method returns, and that a failing evaluation drops the argument silently. Never keep a DBI-level argument named `drv` or `conn`, so that it cannot overwrite the driver kept by DBI. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hr1rd6RgjpQxckjWTEReje
Clean review, round 2 (abf8b2f..69bc030)Scope: the fixes of round 1 (69bc030) and the merge of #794's e8769ad (27dc214). No High or Medium findings, so the review stops here. Low
Checked and correct: Not checked: Generated by Claude Code |
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hr1rd6RgjpQxckjWTEReje
Question: Also catch non-error conditions signaled while evaluating a DBI-level argument?Found by the clean review (Low 3). Both guards in
Kirill decides. If nobody decides, this goes into the Accepted limitations. Generated by Claude Code |
Question: Remove the
|
Accepted limitations
Generated by Claude Code |
Stacked on #794, as Kirill asked there: "Move
dbi_connect_args()and all logic related to it to a stacked PR." This PR restores that logic on top of #794.Changes
Depends: R (>= 4.1.0), for...names().dbConnect()generic captures DBI-level arguments with...names()and...elt()after the method has returned: only names on DBI's internal listdbi_connect_arg_names(), empty for now, are evaluated and merged into the connection's.dbivalue, next to the driver. Other arguments are never forced. The namesdrvandconnare never captured, so they cannot collide with the stored driver or connection.DBIConnector, the arguments are merged and the outermost call wins on a name passed at both levels. The connection keeps the connector's inner driver, as in feat: Keep the driver in each connection and the connection in each result #794, and only listed names of the connector's stored arguments are copied.dbConnect()never fails because of DBI's bookkeeping.?dbConnectdocuments both, and that a method forcing all its arguments, such as the connector's, lets such an error propagate.dbi_connect_arg_names(), since no DBI-level argument exists yet.Status
getRversion()checks.devtools::test()on R 4.5.3: 0 failures. Not run on R 4.1 for this branch (not installed here).https://claude.ai/code/session_01Hr1rd6RgjpQxckjWTEReje
🤖 Generated with Claude Code