-
Notifications
You must be signed in to change notification settings - Fork 182
remote_name()
for in_schema()
etc
#1280
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
Comments
@hadley What's your opinion here? |
Hmmm, I don't really know what we or others use this function for so I don't have a strong sense of what the correct value should be. But one option you didn't mention is |
We only really use it in a single place: in With your proposal of A quick search on GitHub suggests that it isn't used very often and that people really expect a string to be returned. They use something like So, I think it would be nicer if |
Yeah, that sounds fine. (And agreed about the escaping). |
The documentation says
But what exactly is meant by "name" when a table is specified via
in_schema()
,in_catalog()
orDBI::Id()
?At the moment
remote_name()
returns these objects as they are. But from the name I'd rather expect to get a string.I think:
remote_name()
should simply return the name of a table, e.g. forin_schema("my schema", "my table")
it should return"my table"
. If the table was created viaident_q()
orsql()
it returnsNULL
remote_table()
that returns a table identifier e.g. forin_schema("my schema", "my table")
it should returnin_schema("my schema", "my table")
. If the table was created viaident_q()
orsql()
it should return them as they are.The text was updated successfully, but these errors were encountered: