Compare commits

...
Sign in to create a new pull request.

5 commits

Author SHA1 Message Date
Pablo Martin
b1a9657d8e Updated changelog. 2022-07-26 14:31:20 +02:00
Pablo Martin
4c65bf7297 Updated version. 2022-07-26 14:30:59 +02:00
Pablo Martin
730df7b534 Merge branch 'feature/show_rows' into develop 2022-07-26 14:28:39 +02:00
Pablo Martin
02af779f69 Version number is now printed at the start of each session. 2022-07-26 14:22:48 +02:00
Pablo Martin
595ddd2270 Version number is now fed into setup.py. 2022-07-26 14:22:34 +02:00
4 changed files with 13 additions and 8 deletions

View file

@ -1,8 +1,8 @@
# Changelog
# Changelog
## Unreleased
### Added
- Successful print message for each query will now also show the number of rows returned by the query.
## [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
_version.py Normal file
View file

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

View file

@ -6,6 +6,7 @@ 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:
@ -15,6 +16,7 @@ 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,11 +1,13 @@
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="0.1.0",
version=__version__,
name="query_performance_gauge",
packages=find_packages(),
description="Measure how long queries take.",