Compare commits
No commits in common. "master" and "feature/print_version_number" have entirely different histories.
master
...
feature/pr
3 changed files with 2 additions and 11 deletions
|
|
@ -1,8 +0,0 @@
|
|||
# Changelog
|
||||
|
||||
## [0.2.0] - 2022-07-26
|
||||
|
||||
### Added
|
||||
- Sessions will now print the number of rows obtained from each successfully executed query.
|
||||
- The tool version is now printed at the beginning of each session to leave a proper trace of what was the running
|
||||
version for a results file.
|
||||
|
|
@ -1 +1 @@
|
|||
__version__ = "0.2.0"
|
||||
__version__ = "latest"
|
||||
|
|
|
|||
|
|
@ -61,7 +61,6 @@ def measure_query_runtime(
|
|||
cur = connection.cursor()
|
||||
cur.execute(query_to_measure.query_string)
|
||||
rows = cur.fetchall()
|
||||
obtained_rows = len(rows)
|
||||
print(
|
||||
f"Query '{query_to_measure.name}' took {int(time.time() - start_time)} seconds to run and returned {obtained_rows} rows."
|
||||
f"Query '{query_to_measure.name}' took {int(time.time() - start_time)} seconds to run."
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue