Skip to content
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

dbWithConnection() and dbWithResult() #24

Open
krlmlr opened this issue May 4, 2017 · 1 comment
Open

dbWithConnection() and dbWithResult() #24

krlmlr opened this issue May 4, 2017 · 1 comment

Comments

@krlmlr
Copy link
Member

krlmlr commented May 4, 2017

Usage like this:

dbWithConnection(
  con <- dbConnect(...),
  {
    dbWithResult(
      res <- dbSendQuery(con, ...),
      {
        dbFetch(res)
      }
    )
  }
)
@krlmlr
Copy link
Member Author

krlmlr commented Sep 14, 2021

Handled by {withr}.

@krlmlr krlmlr closed this as completed Sep 14, 2021
@krlmlr krlmlr transferred this issue from r-dbi/DBI Nov 1, 2021
@krlmlr krlmlr reopened this Nov 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant