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

Adds a remote environment for DuckDB databases running in a Buena Vista server #135

Merged
merged 7 commits into from
Apr 3, 2023

Conversation

jwills
Copy link
Collaborator

@jwills jwills commented Apr 1, 2023

(using the postgres protocol)

cursor.execute(f"LOAD '{ext}'")
for key, value in self.creds.load_settings().items():
for key, value in creds.load_settings().items():
# Okay to set these as strings because DuckDB will cast them
# to the correct type
cursor.execute(f"SET {key} = '{value}'")
Copy link
Member

Choose a reason for hiding this comment

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

Might be worth escaping quotes here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't understand?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

(Like, which quotes should I be escaping?)

Copy link
Member

Choose a reason for hiding this comment

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

In the case that someone passes a string containing single quotes I mean - they should be doubled up to escape them. It's not directly relevant to this pr, just figured it was worth mentioning

@jwills jwills merged commit 7ba5d2d into master Apr 3, 2023
@jwills jwills deleted the jwills_remote_envs_p2 branch April 3, 2023 15:50
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.

2 participants