mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-05-28 03:49:11 -07:00
mysql_query: returns execution_time_ms list containing execution time per query (#697)
* mysql_query: returns execution_time_ms list containing execution time per query * Update changelogs/fragments/0-mysql_query-returns-exec-time-ms.yml Co-authored-by: Laurent Indermühle <laurent.indermuehle@pm.me>
This commit is contained in:
parent
a45a0d006d
commit
960ac32adf
3 changed files with 31 additions and 2 deletions
|
@ -35,6 +35,7 @@
|
|||
that:
|
||||
- result is changed
|
||||
- result.executed_queries == ['CREATE TABLE {{ test_table1 }} (id int)']
|
||||
- result.execution_time_ms[0] > 0
|
||||
|
||||
- name: Insert test data
|
||||
mysql_query:
|
||||
|
@ -52,6 +53,8 @@
|
|||
- result is changed
|
||||
- result.rowcount == [2, 1]
|
||||
- result.executed_queries == ['INSERT INTO {{ test_table1 }} VALUES (1), (2)', 'INSERT INTO {{ test_table1 }} VALUES (3)']
|
||||
- result.execution_time_ms[0] > 0
|
||||
- result.execution_time_ms[1] > 0
|
||||
|
||||
- name: Check data in {{ test_table1 }}
|
||||
mysql_query:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue