Compare commits
No commits in common. "master" and "feature/show_rows" have entirely different histories.
master
...
feature/sh
4 changed files with 8 additions and 13 deletions
|
|
@ -1,8 +1,8 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
## [0.2.0] - 2022-07-26
|
## Unreleased
|
||||||
|
|
||||||
### Added
|
### 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
|
- Successful print message for each query will now also show the number of rows returned by the query.
|
||||||
version for a results file.
|
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
__version__ = "0.2.0"
|
|
||||||
|
|
@ -6,7 +6,6 @@ import mysql.connector.connection
|
||||||
import trino.dbapi
|
import trino.dbapi
|
||||||
|
|
||||||
from connections import get_connection, clean_up_connection
|
from connections import get_connection, clean_up_connection
|
||||||
from _version import __version__
|
|
||||||
|
|
||||||
|
|
||||||
def run_measuring_session(config: dict) -> None:
|
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.
|
:param config: the full config for the measuring session.
|
||||||
:return: None
|
:return: None
|
||||||
"""
|
"""
|
||||||
print(f"Query Performance Gauge - Version: {__version__}")
|
|
||||||
print("Starting the measuring session.")
|
print("Starting the measuring session.")
|
||||||
|
|
||||||
connection = get_connection(config["connection_details"])
|
connection = get_connection(config["connection_details"])
|
||||||
|
|
|
||||||
6
setup.py
6
setup.py
|
|
@ -1,13 +1,11 @@
|
||||||
from setuptools import setup, find_packages
|
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()
|
required = f.read().splitlines()
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
version=__version__,
|
version="0.1.0",
|
||||||
name="query_performance_gauge",
|
name="query_performance_gauge",
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
description="Measure how long queries take.",
|
description="Measure how long queries take.",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue