observablehq / feedback

Customer submitted bugs and feature requests
42 stars 3 forks source link

Hide Table in SQL query view #503

Closed domoritz closed 1 year ago

domoritz commented 1 year ago

Is your feature request related to a problem? Please describe. I would like to be able to hide the table view in SQL cells. In my case, I only want the result of a query to be assigned to a variable. I still like having the syntax highlighting for SQL.

Describe alternatives you've considered I considered calling client.query directly but then I don't get the syntax highlighting.

Context is that I am using the database client in https://observablehq.com/@cmudig/peeking-into-the-gaia-star-catalog?collection=@cmudig/duckdb

mbostock commented 1 year ago

You can click this button in the toolbar or use the Command-comma keyboard shortcut:

Screen Shot 2022-11-11 at 3 18 19 PM
domoritz commented 1 year ago

Ohhh, I did not see that. I expected this functionality to be near the cell. Thanks!