mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Show SQL and params if table has them applied
This commit is contained in:
parent
26370b14d8
commit
d01370f166
1 changed files with 5 additions and 0 deletions
|
|
@ -24,6 +24,11 @@
|
|||
<h2>{{ "{:,}".format(table_rows) }} total row{% if table_rows == 1 %}{% else %}s{% endif %} in this table</h2>
|
||||
{% endif %}
|
||||
|
||||
{% if query.params %}
|
||||
<pre>{{ query.sql }}</pre>
|
||||
<pre>params = {{ query.params|tojson(4) }}</pre>
|
||||
{% endif %}
|
||||
|
||||
<p>This data as <a href="{{ url_json }}">.json</a>, <a href="{{ url_jsono }}">.jsono</a></p>
|
||||
|
||||
<table>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue