Skip to content

Require con in translate_sql() #1311

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

Merged
merged 5 commits into from
Jun 23, 2023
Merged

Require con in translate_sql() #1311

merged 5 commits into from
Jun 23, 2023

Conversation

mgirlich
Copy link
Collaborator

@mgirlich mgirlich commented Jun 22, 2023

Closes #1209.
While this adds a bit of boilerplate in the tests and the vignette, I think it is much safer this way.
This is a breaking change so we could also use a lifecycle deprecation but as it is hardly every intended to use translate_sql() without a connection I'm not sure we need it.

@mgirlich mgirlich requested a review from hadley June 22, 2023 07:59
Copy link
Member

@hadley hadley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, this is a good change. I was just too lazy to make it earlier.

@mgirlich mgirlich merged commit b1e34c1 into main Jun 23, 2023
@mgirlich mgirlich deleted the translate_sql-require-con branch June 23, 2023 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

translate_sql() should be more careful before falling back to simulate_dbi()
2 participants