diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 6c74205..e834bff 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,8 +1,8 @@ -# Changelog +# Changelog -## [0.2.0] - 2022-07-26 +## Unreleased + +### Added + +- Successful print message for each query will now also show the number of rows returned by the query. -### 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. \ No newline at end of file diff --git a/_version.py b/_version.py deleted file mode 100644 index d3ec452..0000000 --- a/_version.py +++ /dev/null @@ -1 +0,0 @@ -__version__ = "0.2.0" diff --git a/query_performance_gauge.py b/query_performance_gauge.py index 5d00fdf..cfa2d2f 100644 --- a/query_performance_gauge.py +++ b/query_performance_gauge.py @@ -6,7 +6,6 @@ import mysql.connector.connection import trino.dbapi from connections import get_connection, clean_up_connection -from _version import __version__ def run_measuring_session(config: dict) -> None: @@ -16,7 +15,6 @@ def run_measuring_session(config: dict) -> None: :param config: the full config for the measuring session. :return: None """ - print(f"Query Performance Gauge - Version: {__version__}") print("Starting the measuring session.") connection = get_connection(config["connection_details"]) diff --git a/setup.py b/setup.py index 8aa9599..973a611 100644 --- a/setup.py +++ b/setup.py @@ -1,13 +1,11 @@ from setuptools import setup, find_packages -from _version import __version__ - -with open("requirements.txt", encoding="utf-16") as f: +with open('requirements.txt', encoding="utf-16") as f: required = f.read().splitlines() setup( - version=__version__, + version="0.1.0", name="query_performance_gauge", packages=find_packages(), description="Measure how long queries take.",