Compare commits

..

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

4 changed files with 8 additions and 13 deletions

View file

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

View file

@ -1 +0,0 @@
__version__ = "0.2.0"

View file

@ -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"])

View file

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