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

feat(magic): add dryrun config option to only print SQL output #159

Merged
merged 2 commits into from Mar 25, 2023

Conversation

eitsupi
Copy link
Member

@eitsupi eitsupi commented Mar 24, 2023

%config PrqlMagic.dryrun=True allows to just printing without executing output SQL.

@@ -40,6 +40,7 @@ class PrqlMagic(SqlMagic):
autoview = Bool(True, config=True, help="Display results")
feedback = Bool(False, config=True, help="Print number of rows affected by DML")
target = Unicode("sql.any", config=True, help="Compile target of prql-compiler")
dryrun = Bool(False, config=True, help="Only print the compiled SQL")
Copy link
Member Author

Choose a reason for hiding this comment

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

Would it be better to use a different name?

@max-sixty
Copy link
Member

Great idea!

I can't think of a better name...

@eitsupi eitsupi merged commit b5a602f into PRQL:main Mar 25, 2023
5 checks passed
@eitsupi eitsupi deleted the dry-run branch March 25, 2023 03:06
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.

None yet

2 participants