-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement RStudio Connection Contract #11
Comments
This might need to wait until we have fleshed out r-dbi/DBI#24 in DBI. |
A function that wraps |
@krlmlr Just checking in on this issue. We consistently find ourselves wanting to demo RSQLite connections with Shiny apps. It would be great to have the connections contract working for Shiny developers who want to use database backends. |
@jimhester: Do you have time to look into this? |
Just agreed with @edgararuiz that he would take a look.
|
Is this still blocked? I have a use case for it. |
The yet-to-be-implemented conmgr will handle all new connections. In DBI, we'll call methods in conmgr if this package is installed. Clients will be able to register their own callbacks there. |
@krlmlr I see that conmgr has been archived. Are there any new plans w.r.t. RStudion Connection Contracts in DBI? |
The connections package seems to wrap |
https://github.com/rstudio/connections looks like the way to go. Perhaps we can provide connection events as part of a rewrite. Closing for now, bookmarking this issue. |
Right, |
Link: https://rstudio.github.io/rstudio-extensions/connections-contract.html
Should be possible by changing the implementation of the generic to
instead of the current implementation:
Similar for
dbDisconnect()
. I'm not sure about theconnectionUpdated()
entry point, because DBI currently doesn't provide notification.Implementation sketch by @edgararuiz: https://gist.github.com/edgararuiz/0533b3daf70a41b70acd75c1e6a2b7a3.
Happy to review a PR. CC @nwstephens @jimhester.
The text was updated successfully, but these errors were encountered: