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

Config file with profiles and a setup prompt #206

Closed
tconbeer opened this issue Sep 8, 2023 · 3 comments · Fixed by #341
Closed

Config file with profiles and a setup prompt #206

tconbeer opened this issue Sep 8, 2023 · 3 comments · Fixed by #341
Labels
enhancement New feature or request

Comments

@tconbeer
Copy link
Owner

tconbeer commented Sep 8, 2023

Theme, extensions

Profiles, especially when we support multiple connection types.

Also startup scripts like #241

Also I want a CLI to walk me through setup. The file will be TOML but there should be a command to create a profile. It could be aware of the available plugins and the config each needs.

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

tconbeer commented Sep 22, 2023

https://github.com/petereon/beaupy is based on Rich, which is nice.

harlequin config, etc.

update: it actually pins an old version of rich (<13), and isn't currently compatible. maintenance doesn't look great.

@tconbeer
Copy link
Owner Author

tconbeer commented Oct 2, 2023

Questionary also looks good and lightweight deps wise.

@tconbeer tconbeer changed the title Config file Config file with profiles and a setup prompt Oct 2, 2023
@tconbeer
Copy link
Owner Author

tconbeer commented Oct 9, 2023

default_profile = "my-duckdb-profile"

[profiles.my-duckdb-profile]
theme = "monokai"
limit = 100_000
adapter = "duckdb"
connections = [":memory:"]

[profiles.my-duckdb-profile.adapter_options]
read_only = false
allow_unsigned_extensions = false
extension = ["httpfs", "spatial"]
force_install_extensions = false
md_saas = false
init_path = "~/.duckdbrc"

[profiles.local-postgres]
theme = "fruity"
limit = 1_000
adapter = "postgres"
connections = []

[profiles.local-postgres.adapter_options]
host = "localhost"
user = "postgres"
password = "secretadminpassword"
database = "postgres"
port = 5432
init_path = "~/.psqlrc"

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.

1 participant