Repository navigation
Conversation
…e .dbi slot An experiment record under experiments/, with a registry, excluded from the built package by .Rbuildignore. It installs a minimal backend and RSQLite against DBI from main, then DBI from #794 over it, and records what works and what fails with the .dbi slot, after reinstalling the backends, and in the reverse direction. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hr1rd6RgjpQxckjWTEReje
Clean review, round 1 (789e679)Reviewed by an agent without context from the work, by re-running Medium, both being fixed:
Low, all being fixed: the evidence that Checked and correct: every finding matches the outputs line for line; Not checked: whether Generated by Claude Code |
Describe the copy that methods writes when DBI's class metadata is not imported, and test a subclass defined after loading such a package. Show the value of the .dbi slot directly, note that attr() can return NULL, and make the recorded output independent of path lengths. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hr1rd6RgjpQxckjWTEReje
Clean review, round 2 (789e679..d6e22b3)Scope: the fixes of round 1. No High findings; the one Medium is about the branch history, not the record, so the review stops here. Medium
Low, all being fixed: the Checked and correct: the mechanism against Not checked: other platforms and R versions. Generated by Claude Code |
Question: Rewrite branch history to remove the name of an external repository?The first commit of this PR, 789e679, and the experiment registry on the branch of the closed #795 (
Kirill decides; a force-push needs his go-ahead. If nobody decides, the history stays. Generated by Claude Code |
…ixed strings Cite both runs that show the replaced definition, say that one class defined in the global environment was tested, and list the classes that inherit a stale copy among the cases where attr() returns NULL. The driver now replaces paths as fixed strings. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hr1rd6RgjpQxckjWTEReje
Accepted limitations
Generated by Claude Code |
Stacked on #794. Kirill asked to understand the limitation behind "objects created by a backend that was installed against an older version of DBI … lack the slot", with an experiment that installs a backend, then the refreshed DBI, and shows what fails.
Result
Recorded in
experiments/2026-11-29-dbi-slot-old-backend/, with scripts and output (R 4.5.3 on Linux; DBImainand #794; minimal backends written for the experiment and RSQLite 3.54.1, compiled from source against each DBI in a private library, each step in a fresh process).experiments/README.mdlists the record, and.Rbuildignoreexcludes the folder from the package build.mainkeeps a connection class without.dbiuntil it is reinstalled.@: the generic sets the attribute, and@andslot()read any attribute of that name.@andslot()fail where the attribute is missing, on objects made withnew()and on objects saved withsaveRDS()undermain:no slot of name ".dbi" for this object of class "MiniConnection". Assigning with[email protected] <-fails:‘.dbi’ is not a slot in class “MiniConnection”.@work for new objects, but objects saved before then fail@and now alsovalidObject():slots in class definition but not in object: ".dbi". Raised on feat: Keep the driver in each connection and the connection in each result #794 as a question.[email protected]is an empty list,validObject()passes.DBIConnectionandDBIObjectat install time (setIs()copies a superclass it cannot find through the imports). Loading it replaces DBI's definitions in the class table, so a class defined in the global environment afterwards inherits the stale copy.attr(x, ".dbi", exact = TRUE)never errors; it returnsNULLwhere the attribute is missing.Status
https://claude.ai/code/session_01Hr1rd6RgjpQxckjWTEReje
🤖 Generated with Claude Code