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

Run commands in ~/.duckdbrc on startup #241

Closed
pdpark opened this issue Sep 21, 2023 · 2 comments · Fixed by #249
Closed

Run commands in ~/.duckdbrc on startup #241

pdpark opened this issue Sep 21, 2023 · 2 comments · Fixed by #249
Labels
enhancement New feature or request

Comments

@pdpark
Copy link

pdpark commented Sep 21, 2023

Would be great if harlequin could read & execute the contents of ~/.duckdbrc on startup. Mine looks something like this:

INSTALL httpfs;
LOAD httpfs;
SET s3_region='us-west-2';
@tconbeer
Copy link
Owner

Yes we are definitely doing this. Thanks for opening this issue!

@tconbeer tconbeer added the enhancement New feature or request label Sep 22, 2023
@tconbeer
Copy link
Owner

tconbeer commented Sep 23, 2023

@pdpark Do you think we should support dot commands? Or would just sql be ok? Many dot commands aren't relevant, but some, like .clone, might be nice? The others we could just ignore, so people could use the same file for the CLI and Harlequin. Would require some simple parsing on our end and translating dot commands into sql, since the Python API doesn't execute dot commands.

Full list:

https://duckdb.org/docs/api/cli#special-commands-dot-commands

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants