Skip to content

Allow for using other readers in ggsql cli#251

Merged
georgestagg merged 2 commits intomainfrom
cli-other-readers
Mar 20, 2026
Merged

Allow for using other readers in ggsql cli#251
georgestagg merged 2 commits intomainfrom
cli-other-readers

Conversation

@georgestagg
Copy link
Collaborator

With this, one should be able to do e.g.

cargo run --features sqlite --bin ggsql -- exec --reader sqlite://:memory: 'VISUALISE species AS x, bill_dep AS y, island AS fill FROM ggsql:penguins  DRAW violin'

To test queries with the sqlite reader.

@georgestagg georgestagg requested a review from teunbrand March 20, 2026 13:49
Copy link
Collaborator

@teunbrand teunbrand left a comment

Choose a reason for hiding this comment

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

LGTM, but would be nice to also list the options in the documentation when typing ggsql run --help. I don't realy understand how these are currently generated.

@georgestagg
Copy link
Collaborator Author

They're generated from the doc strings! We can just update the comments to update the output:

Screenshot 2026-03-20 at 14 04 02

@georgestagg georgestagg merged commit 5bec040 into main Mar 20, 2026
31 checks passed
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