Compare commits

..

No commits in common. "master" and "feature/print_version_number" have entirely different histories.

3 changed files with 2 additions and 11 deletions

View file

@ -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.

View file

@ -1 +1 @@
__version__ = "0.2.0" __version__ = "latest"

View file

@ -61,7 +61,6 @@ def measure_query_runtime(
cur = connection.cursor() cur = connection.cursor()
cur.execute(query_to_measure.query_string) cur.execute(query_to_measure.query_string)
rows = cur.fetchall() rows = cur.fetchall()
obtained_rows = len(rows)
print( 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."
) )