Skip to content

Implementation of RStudio Connection contract - #352

Closed
edwindj wants to merge 1 commit into
r-dbi:mainfrom
edwindj:main
Closed

edwindj wants to merge 1 commit into
r-dbi:mainfrom
edwindj:main

Conversation

@edwindj

@edwindj edwindj commented Mar 17, 2021

Copy link
Copy Markdown
Contributor

I have implemented the RStudio Connection contract (https://rstudio.github.io/rstudio-extensions/connections-contract.html) for RSQLite. Which makes it possible to see the contents of the SQLite database you are connecting to.

This does not introduce extra dependencies for RSQLite, but will call the functions:

  • on_connection_opened (in dbConnect)
  • on_connection_closed (in dbDisconnect)
  • on_connection_updated (in dbWriteTable and dbRemoveTable)

These functions return invisible NULL in a normal R session, but will do something whenever "connectionObserver" option is set. (which is typically the case within RStudio).

I can imagine that this PR with this specific RStudio functionality is worth a discussion, but I think it will make working with SQLite in R for a many Data Scientists a little bit more pleasant.

Best,

Edwin

@krlmlr
krlmlr marked this pull request as draft March 30, 2021 02:44
@krlmlr
krlmlr marked this pull request as ready for review March 30, 2021 02:44
@krlmlr

krlmlr commented Mar 30, 2021

Copy link
Copy Markdown
Member

Thanks. Can you please merge/rebase?

@krlmlr krlmlr closed this in #363 Apr 11, 2021
krlmlr added a commit that referenced this pull request Apr 11, 2021
- Implement RStudio Connection Contract (#352, @edwindj).
@krlmlr

krlmlr commented Apr 11, 2021

Copy link
Copy Markdown
Member

Thanks, merged.

krlmlr added a commit that referenced this pull request Apr 22, 2021
- Remove RStudio Connection pane support due to problems reported by users.

This reverts commit 4c46b69, reversing
changes made to 9132213.

Reverts changes from #352 and #363, CC @edwindj.
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Apr 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants