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

dbCanConnect ? #87

Closed
hadley opened this issue Mar 8, 2016 · 2 comments
Closed

dbCanConnect ? #87

hadley opened this issue Mar 8, 2016 · 2 comments

Comments

@hadley
Copy link
Member

hadley commented Mar 8, 2016

It might be useful to have a function that allows you to determine if a set of connection parameters is valid, without actually generating the connection

@krlmlr
Copy link
Member

krlmlr commented Mar 8, 2016

With default implementation:

tryCatch({dbConnect(...); TRUE}; error = function(e) FALSE)

@hadley
Copy link
Member Author

hadley commented Mar 8, 2016

Default would also need a dbDisconnect() in case of success.

@krlmlr krlmlr added the ready label Apr 6, 2017
@krlmlr krlmlr closed this as completed in ca8ab55 Apr 23, 2018
@ghost ghost removed the ready label Apr 23, 2018
@github-actions github-actions bot locked and limited conversation to collaborators Oct 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants