{% trans 'Press Ctrl+Enter to execute query' %}
{% trans 'Press Enter to execute query' %}
{% if sql_history is not empty %}
{% for record in sql_history|reverse %}
{% include 'console/query_action.twig' with {
'parent_div_classes': 'action_content',
'content_array': [
['action collapse', 'Collapse'|trans],
['action expand', 'Expand'|trans],
['action requery', 'Requery'|trans],
['action edit', 'Edit'|trans],
['action explain', 'Explain'|trans],
['action profiling', 'Profiling'|trans],
cfg_bookmark is defined ? ['action bookmark', 'Bookmark'|trans] : null,
['text failed', 'Query failed'|trans],
{0: 'text targetdb', 1: 'Database'|trans, 'extraSpan': record['db']},
{
0: 'text query_time',
1: 'Queried time'|trans,
'extraSpan': record['timevalue'] is defined ?
record['timevalue'] : 'During current session'|trans
}
]
} only %}
{{ record['sqlquery'] }}
{% endfor %}
{% endif %}