Repository navigation
Extra connection params - #83
Merged
Merged
Conversation
|
|
||
| opts <- unlist(list(dbname = dbname, user = user, password = password, | ||
| host = host, port = as.character(port), service = service, client_encoding = "utf8")) | ||
| host = host, port = as.character(port), service = service, client_encoding = "utf8", ...)) |
Member
There was a problem hiding this comment.
Are there no restriction on the naming of options?
Contributor
Author
There was a problem hiding this comment.
The options name are arbitrary, they're all listed here: http://www.postgresql.org/docs/9.4/static/libpq-connect.html#LIBPQ-PARAMKEYWORDS. We can add them all as keywords arguments, or pass them in the .... The way the code was written, the ... wasn't used at all, even though it was documented as a way to pass extra options. If you pass an incorrect option, it throws an error with an informative error message, so I think it's fine not filtering the options explicitely.
thrasibule
force-pushed
the
extra_connection_params
branch
from
December 17, 2016 21:44
5439f93 to
e10dadf
Compare
krlmlr
added a commit
that referenced
this pull request
Aug 7, 2017
- `dbConnect()` now accepts arbitrary connection parameters in the `...` argument (#83, @thrasibule).
Member
|
Thanks! |
krlmlr
added a commit
that referenced
this pull request
Aug 7, 2017
- Update Rcpp registration code. - `dbConnect()` now accepts arbitrary connection parameters in the `...` argument (#83, @thrasibule). - Handles NA values by converting them to NULL (#82, @thrasibule). - Handle string quoting and missing values in strings (#89, @jimhester). - `PKG_CFLAGS` and `PKG_LIBS` are now being set when using pg_config for `includedir` and `libdir` (#119, @Usman-R). - Use `BYTEA` instead of `BLOB` for PostgreSQL 9.5 support.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This closes #75. I had to export the pid in dbGetInfo to facilitate testing.