mirror of
https://github.com/simonw/datasette.git
synced 2026-09-05 16:14:07 +02:00
* Fix for execute write returning, closes #2762 * Fix stored write returning rowcount message * Add configurable execute_write returning limit * Return rows/truncated from execute query if it used RETURNING * INSERT ... RETURNING shows rows in /-/execute-write * Skip RETURNING tests if SQLite version does not support it Screenshot: https://github.com/simonw/datasette/issues/2762#issuecomment-4588111545
20 lines
609 B
HTML
20 lines
609 B
HTML
{% if display_rows %}
|
|
<div class="table-wrapper"><table class="rows-and-columns">
|
|
<thead>
|
|
<tr>
|
|
{% for column in columns %}<th class="col-{{ column|to_css_class }}" scope="col">{{ column }}</th>{% endfor %}
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for row in display_rows %}
|
|
<tr>
|
|
{% for column, td in zip(columns, row) %}
|
|
<td class="col-{{ column|to_css_class }}">{{ td }}</td>
|
|
{% endfor %}
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table></div>
|
|
{% elif show_zero_results %}
|
|
<p class="zero-results">0 results</p>
|
|
{% endif %}
|