Skip to content

Display indented SQL queries in expanded views. #1116

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

Merged
merged 1 commit into from
Feb 24, 2019

Conversation

thomas-riccardi
Copy link
Contributor

This reuses the query details toggle to display the indented version: the default view does not change.

This uses &nbsp; and <br/> to convert sqlparse.format from text to html visual indentation, it has a small visual glitch with the + button to toggle details on the SELECT first line, but hopefully it's OK for everyone.

Also, use expanded form in SQL select/explain/profile views to profit from the indented formatting.

Result:
screenshot_20181123_194110
screenshot_20181123_194130

@thomas-riccardi
Copy link
Contributor Author

I have not executed the selenium tests yet (simply following the contributing doc resulted in an error (WebDriverException: Message: 'geckodriver' executable needs to be in PATH. )); they may thus be broken...

Also, use expanded form (thus with indentation) in SQL
select/explain/profile views.
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.

3 participants